The transforms library is set of utilities for working with indexed tables. It provides highly reusable special iterators that are at the core of text
and sh
command parsing.
transforms.sub(tbl, first, last) table
Functions identically to string.sub
, even supporting negative indexes. Returns a sub table of tbl
from first
to last
. Like string.sub
, first
and last
can be negative indexes, and last
can be omitted to include “the rest”.
transforms.first
transforms.find
transformas.partition
transformas.begins
transforms.foreach
or transforms.select
transforms.where
transforms.at