Skip to main content

LOOP_INDEX_BASE

Constant LOOP_INDEX_BASE 

Source
pub const LOOP_INDEX_BASE: i64 = 1;
Expand description

The position {for each x in xs, at index i:} gives the first item.

Positions in LOGOS are 1-based — item 1 of xs is the first item and item 0 of xs is an error — so a template index names the same numbers: the row showing {i} is the row item i of xs reads. Every walk that draws a loop (the page lowering, the server walk) starts its counter here.