Navigation
Synopsis Determine the largest element of a set.
Function &T max(set[&T] st)
Usage import Set;
Examples
rascal>import Set;
ok
rascal>max({1, 3, 5, 2, 4});
int: 5
rascal>max({"elephant", "zebra", "snake"});
str: "zebra"

Questions
Question [1].
The type of max({"U", "Lemon"}) is

Question [2].
max({"Forgetful Jones", "Kiwifruit", "Grapefruit", "Peppermint", "Fig", "Guy Smiley"}) == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.