Skip to main content

comb

comb(
@llll ## required
@kstart 0
@kend 'none'
@maxcount 0
) -> llll/null

Returns all the k-combinations of an llll for a range of k.


Arguments

  • @llll [llll] (required)
  • @kstart [llll] (default: 0)
  • @kend [llll] (default: 'none')
  • @maxcount [llll] (default: 0)

Output

The k-combinations of an llll for a range of k. [llll/null]

warning

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


Usage

comb(-1 2) ## [ [ ] ] [ [ -1 ] [ 2 ] ] [ [ -1 2 ] ]