Skip to main content
right(
@llll ## required
@index -1
) -> llll/null

Returns the right part of an llll relative to an index. When @index is negative, the index defines the split point from the end of the list.


Arguments

  • @llll [llll] (required)
  • @index [int] (default: -1)

Output

Right part of an llll relative to an index. [llll/null]

warning

right is a built-in function in the bell programming language and is not unique or exclusive to bellplay~. As such, right will return null without raising an error if required arguments are not provided.


Usage

right(1...10, 5) ## 6 7 8 9 10