mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
282 B
282 B
META
description=List.sublist returns a continuous subsection of the original list
type=repl
SOURCE
» nested = List.sublist([[0, 1], [2, 3], [4, 5], [6]], {start: 2, len: 1})
» List.get(nested, 0)
OUTPUT
assigned nested
Ok([4, 5])
PROBLEMS
NIL