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 and with one argument, an index, returns the list's value at that index. Returns the list's length with negative index.