Skip to main content

Module list_ext

Module list_ext 

Source
Expand description

Extended list operators beyond tatara-lisp-eval’s primitives.

(take N XS) → first N elements (drop N XS) → all elements after the first N (range LO HI) → integers [LO, HI) (range LO HI STEP) → integers [LO, HI) stepping by STEP (distinct XS) → same order, duplicates removed (flatten XS) → one-level flatten (zip XS YS) → list of 2-lists (concat XS YS …) → append any number of lists (nth N XS) → 0-based; nil if out of range (last XS) → last element or nil

Functions§

install