Lists in Bitbybit
How bitbybit.lists reads, builds, edits, regroups and sorts lists of any kind of item, what the clone option does to your input, and how positions are counted from 0.
Build, query and reshape lists in Bitbybit - the data structure almost every parametric script is really built on. Geometry work is list work: a row of points becomes a wire, a list of wires becomes a loft, and a list of solids becomes an assembly. These pages cover creating lists, getting and setting items by index, slicing, flipping and flattening nested structures, grouping into sublists, and the sorting and filtering used to pick out the shapes you want. Each example is shown in Rete, Blockly and TypeScript.
How bitbybit.lists reads, builds, edits, regroups and sorts lists of any kind of item, what the clone option does to your input, and how positions are counted from 0.