[m-rev.] for review: Added cord.condense/2
jfischer at opturion.com
Mon Jul 1 21:37:40 AEST 2013
On Mon, Jul 1, 2013 at 4:57 PM, Julien Fischer <jfischer at opturion.com>wrote:
> On Mon, 1 Jul 2013, Paul Bone wrote:
> For review by anyuone.
>> Added cord.condense/2
>> Added new predicate and function
> Full stop after that.
> I don't think there should be a predicate version.
> (I know the list module often defines both predicate and function
> versions of things that are naturally functions, but that's largely for
> historical reasons.)
Actually, in some cases we have the predicate versions because they
are useful with state variables -- I don't think that's likely to be the
with condense though because the input and output types differ.
( Aside: it did occur to me that the following extension to state variable
be nice for function applications:
!A = foo
===> !:A = foo(!.A)
or more generally:
!A = foo(B1, B2, ..., BN)
===> !:A = foo(B1, B2, ..., BN, !.A)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reviews