List standard library functions

flop

Return list in reversed order

sort

using quicksort, sort a list using a gate as comparator: (sort ~[5 6 2 4] lth)

weld

Concatenate lists of the same type. (weld ~[1 2 3] ~[4 5 6])

snag

grab the nth item from the list. zero-indexed

(snag n `(list @)`~[1 2 3])

oust

Takes a pair of atoms, a, b, and a list and returns the list with items a->b removed.

lent

takes a list and returns the number of items in it.

roll

Takes a list and a gate, accumulates the items in the list using the gate (like reduce?)

turn

Like map. Takes a list and a gate and returns a list with the gate “done” to each list item.