Documentation for routine min
Documentation for routine min, assembled from the following types:
Returns the smallest of the arguments, as determined by cmp semantics.
my = 42;min= 0 # read as: $foo decreases to 0
multi method min(--> Any)multi method min( --> Any)
Coerces to Iterable and returns the numerically smallest element. If a
Callable positional argument is provided it is called with each element and its smallest return values is returned.
Returns the start point of the range.
say (1..5).min; # OUTPUT: «1␤»say (1^..^5).min; # OUTPUT: «1␤»
method min(Supply: = :<cmp> --> Supply)
Creates a supply that only emits values from the given supply if they are smaller than any value seen before. In other words, from a continuously descending supply it will emit all the values. From a continuously ascending supply it will only emit the first value. The optional parameter specifies the comparator, just as with Any.max.