Map
, Tuple
, or Stream
(analogous to a Python dict
, tuple
, or generator). TinyChain handles these cases using functional programming with the filter
, fold
, for_each
, and map
methods. An easy example is using map
to create a new Tuple
based on an existing Tuple
:Collection
types like Table
and Tensor
all support copying from and into a Stream
. For example, you can create a Tensor
by reading fields from a Table
:Stream
is in place of a for
loop. For example: