NAME ^

src/builtins/any_list.pir - List-like functions and methods for Any

DESCRIPTION ^

This file implements the methods and functions of Any that are most closely associated with the Num class or role. We place them here instead of src/classes/Any.pir to keep the size of that file down and to emphasize their generic, "built-in" nature.

Methods ^

elems()

join

min

pick($num, :$repl)

reverse()

sort()

Sort list. In this case we copy into an FPA to make use of the Parrot's built-in sort algorithm.


parrot