slice
slice(
@llll ## required
@index 1
) -> llll/null
Divides @llll into two sublists according to a split point (1-based index).
Arguments
@llll[llll] (required)@index[int] (default:1)
Output
Sublists [llll/null]
warning
slice is a built-in function in the bell programming language and is not unique or exclusive to bellplay~. As such, slice will return null without raising an error if required arguments are not provided.
Usage
slice(1...5, 2) ## [ 1 2 ] [ 3 4 5 ]