Home My formal education Article list Prolog Prolog maxlist function

Prolog maxlist function

E-mail Print
Share/Save/Bookmark
maxList([A],A).
maxList([A|List],Max):-
maxList(List,Max1),
(A>=Max1, Max=A; A<Max1, Max=Max1).
Hits: 6637
Comments (1)Add Comment
June 24, 2009     
thanks
hi i'm saba.i'm live in iran(asia).I am student (software engineering).thank for prolog's program.
goodluck
saba | 92.50.50.174

Write comment

busy
Last Updated ( Wednesday, 27 August 2008 13:09 )  

My friends

Bookingpoint
partner websites

Donate

Do you find content useful? Please donate so I can cover my hosting expenses! Thanks!