Skip to main content

sequence_fn

Function sequence_fn 

Source
pub fn sequence_fn(args: &[Value]) -> Value
Expand description

SEQUENCE(rows, [cols], [start], [step])

Returns an array of sequential numbers. Default: cols=1, start=1, step=1. Always returns a nested 2-D Array of rows row-arrays, each with cols elements, matching Google Sheets orientation: SEQUENCE(N) / SEQUENCE(N,1) is an N-row × 1-column column vector ([[1],[2],[3]]), not a 1×N row.