Hi,
My function for finding the max number of a list is as follows:
val Max_List = Define ( Max_List []= NONE)
/\ ( Max_List (h::l) = let max= Max_List l in
( if h > max then SOME h else if h = max then NONE
(else( Max_List l)))
I do not know whats wrong with this?
Can anybody help please?
when I use 0 instead of zero it works properly.
Thanks a lot
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
hol-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hol-info