5.1.0 Released

14 views
Skip to first unread message

andrew cooke

unread,
Mar 18, 2012, 3:54:36 PM3/18/12
to Lepl Mailing List

This is a very small change from 5.0.2, but breaks a public API (changing
Repeat very slightly) so it seemed worth a middle version number.

I've added the Reduce() matcher which does a reduce (or fold) over the results
from another matcher. This is the generalisation necessary to make String()
work in a consistent way across different types.

Reduce() works very like Add() by default - the main difference is that it
returns something when there's no result, while Add does not.

It turns out that the generalisation isn't very useful (at least, I can't see
a good example), but the code remains consistent and logical, which is
probably for the best.

Andrew

Reply all
Reply to author
Forward
0 new messages