Explorer

core.call-argument-fn-base

description
The index of the first function in the argument with the name, counting functions of the earlier arguments from base (core.collect-functions order)
type
Fn(
  arguments: List<Record{name: String, value: @core.expression}>,
  name: String,
  base: Number,
  index: Number
) -> Number
expression
fn(arguments$0, name$1, base$2, index$3) =>
  match @core.list-get(list: $0, index: $3) {
    #none(_) =>
      $2,
    #some(item$1005) =>
      let argument$4 = $1005;
      match @core.equal(left: $4.name, right: $1) {
        true =>
          $2,
        false =>
          @core.call-argument-fn-base(
            arguments: $0,
            name: $1,
            base: @core.plus(left: $2, right: @core.count-functions(expr: $4.value)),
            index: @core.plus(left: $3, right: 1)
          )
      }
  }
visibility
public
core.call-argument-fn-base (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: 028eobA11JZgQYqkwGNXXvPL3yywFdcTZJ2D1kL-Hww
content hash: ANmY_LhWlFrogXiIvCebhjbj0pDD0IWTGCqzcAhFOHQ