Skip to main content

rot

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

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

Rotates 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)
  • @shift [int] (default: 1)
  • @depth [int/llll/null] (default: null)
  • @mindepth [int] (default: 1)
  • @maxdepth [int] (default: 1)

Output

Rotated llll [llll/null]

warning

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