[m-dev.] For review: doco on conditional expressions

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Sep 22 14:08:11 AEST 1998


On 22-Sep-1998, David Glen JEFFERY <dgj at cs.mu.OZ.AU> wrote:
> On 22-Sep-1998, Thomas Charles CONWAY <conway at cs.mu.OZ.AU> wrote:
> >  A data-term is either a variable, a data-functor, a higher-order
> > -function application, or a lambda expression.
> > +function application, conditional expression or a lambda expression.
> 
> I'm a little confused by this. How can a conditional expression be used as a
> data term other than inside a lambda expression?

Let me give you an example:

	f(X) = (if X > 0 then 42 else 43).

-- 
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.



More information about the developers mailing list