Skip to main content

List Slice

Category: Lists List Slice block screenshot

Pure read expression that returns a sliced copy of a list. from is inclusive. to is exclusive. If omitted:; from defaults to 0; to defaults to list.length. Bounds must satisfy 0 <= from <= to <= list.length.

Inputs

InputRequiredValue KindTypesEnum Values
listyesexpressionarray
fromnoexpressionnumber
tonoexpressionnumber

Notes

  • Pure read expression that returns a sliced copy of a list.
  • from is inclusive.
  • to is exclusive.
  • If omitted:
    • from defaults to 0
    • to defaults to list.length
  • Bounds must satisfy 0 <= from <= to <= list.length.