[m-dev.] for review: function def's for single out det mode library predicates

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jul 8 00:35:27 AEST 1999


In addition to my previous comments about the changes I would make
to Ralph Becket's change before committing it, here is one more:

std_util.m:
> +	% General purpose higher-order programming constructs.
> +
> +	% o(F, G, X) = F(G(X))
> +	%
> +	% Function composition.
> +	% XXX It would be nice to have infix `o' or somesuch for this.
> +:- func o(func(T2) = T3, func(T1) = T2, T1) = T3.

I renamed that function as `compose'.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list