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

Questions
Question [1].
The type of min({"Pineapple", "Lime", "R2-D2"}) is

Question [2].
min({"Barkley the Dog"}) == 



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.