Skip to main content

rev

rev(
@llll ? ## required
@depth null
@mindepth 1
@maxdepth 1
) -> llll/null
note

rev is a built-in function in the bell programming language and is not unique or exclusive to bellplay~.

Reverses the contents of an llll. By default, only the root level is changed. This can be changed with the @mindepth and @maxdepth arguments.


Arguments

  • @llll [llll] (required)
  • @depth [int/llll/null] (default: null)
  • @mindepth [int] (default: 1)
  • @maxdepth [int] (default: 1)

Output

Reversed llll [llll/null]

warning

rev will return null without raising an error if required arguments are not provided.