Loading

->LIST

lists conversion

The ->LIST function create a list from N elements on the stack. N and the N next elements on the stack are consumed.

If N is greater than current stack depth, the function raises an error.

->LIST is available since version 1.0.0.

See also

Signatures

Examples

'el1' true 42 'el4' 4 // Try 5 to raise an error ->LIST // Alternate syntax: [ 'el1' true 42 'el4' ]