PHP and Facebook freelancer
maxList([A],A).maxList([A|List],Max):- maxList(List,Max1), (A>=Max1, Max=A; A<Max1, Max=Max1).