Navigation
Synopsis Determine the smallest element in a list.
Function &T min(list[&T] lst)
Usage import List;
Examples
rascal>import List;
ok
rascal>min([1, 3, 5, 2, 4]);
int: 1
rascal>min(["zebra", "elephant", "snake", "owl"]);
str: "elephant"

Questions
Question [1].
The type of min(["N", "Jabba the Hut"]) is

Question [2].
min([-3, -11]) == 



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.