[m-rev.] for review: add predicate versions of int.fold_up/down

Ralph Becket rafe at cs.mu.OZ.AU
Sat Mar 27 09:10:23 AEDT 2004


Julien Fischer, Friday, 26 March 2004:
> 
> Estimated hours taken: 1
> Branches: main
> 
> Add predicate versions of int.fold_up and int.fold_down.
> 
> XXX We should probably consider swapping the order of
> the arguments in the function versions so they correspond
> to the predicate versions more closely.

Ah, sorry about that.  The Mercury standard library argument order (with
the range coming before the initial accumulator) for folds is (a) less
useful for higher order programming and (b) different to what you'll
find in Haskell libraries etc.  I slipped up when adding fold_up/down -
now is probably the right time to change that if you want.

-- Ralph
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list