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 List 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()
end
first(...)
grep(...)
join
keys()
Return a List with the keys of the invocant.
kv
map()
min
pairs()
pick($num, :$repl)
reduce(...)
sort()
Sort list. In this case we copy into an FPA to make use of the Parrot's built-in sort algorithm.
values
Return values of the list


parrot