Skip to main content

minmax

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

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

Returns an llll composed of four elements, respectively the minimum value in the llll, its address, the maximum value and its address. According to the @mindepth and @maxdepth parameters, data in sublists are considered or not.


Arguments

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

Output

minmax information, structured as follows: <min> [<min_address>] <max> [<max_address>] [llll/null]

warning

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