Skip to main content

prod

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

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

Returns the product of the elements in an llll. By default, products are computed only the root level. 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

Product of the elements in an llll. [llll/null]

warning

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