ML

Gábor Timár TGabor@psion.net
Thu, 28 Sep 2000 18:14:28 +0200


> Hi,
> I'm currently programming in ML, but woul need some help now. I try to
> construct a function makeing an ascending list out of a list. I have this
so
> far, but something is wrong with it:
>
> load "Int";
> exception empty;
>
> fun ascend []= raise empty
> | ascend (x1::x2::xs) = Int.min(x1,x2)::(tl(ascend xs));
>
> Can u help me with it? Thanks in advance: Gabor