chickadee » dotted-lambdas » callable

callable lstprocedure

makes the list argument, lst, callable, i.e. encapsulates it in a procedure of zero or one argument. With no argument it returns the encapsulated list, with one argument, an index, it returns the list's value at that index, and with a negative index, it returns the list's length.