Documentation for method
min assembled from the following types:
multi method min(--> Any)multi method min( --> Any)
Coerces to Iterable and returns the numerically smallest element.
If a Callable positional argument is provided, each value is passed into the filter, and its return value is compared instead of the original value. The original value is still the one returned from
say (1,7,3).min(); # OUTPUT:«1␤»say (1,7,3).min(); # OUTPUT:«7␤»
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.min.