nth
nth(
@llll ## required
@address 1
@placeholder null
) -> llll/null
Returns one or more elements from an llll according to its address. If a @placeholder is provided, it will be inserted in the place of non-existing elements.
Arguments
@llll[llll] (required)@address[int] (default:1)@placeholder[llll/null] (default:null)
Output
Or more elements from an llll according to its address. [llll/null]
warning
nth is a built-in function in the bell programming language and is not unique or exclusive to bellplay~. As such, nth will return null without raising an error if required arguments are not provided.
Usage
nth('a' 'b' 'c', 2) ## b
nth(1...10, 20, 'missing') ## missing