Explorer

core.count-functions-in-record-items

description
count plus the functions in the values of the record items from index
type
Fn(items: List<Record{key: String, value: @core.expression}>, index: Number, count: Number) -> Number
expression
fn(items$0, index$1, count$2) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      $2,
    #some(item$3) =>
      @core.count-functions-in-record-items(
        items: $0,
        index: @core.plus(left: $1, right: 1),
        count: @core.count-functions-acc(expr: $3.value, count: $2)
      )
  }
visibility
public
core.count-functions-in-record-items (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: 5BSQRzKuICWmeES41S3OmpM-Xw2nqknWL77ccttM3OQ
content hash: IaIOxdaEZ-TFfdpepWvbwFYs3EXyH1tx2_hrREsCYxA