core.call-argument-rank
- description
- The number of arguments whose names come before name. The argument is stored at this position at run time
- type
Fn( arguments: List<Record{name: String, value: @core.expression}>, name: String, index: Number, acc: Number ) -> Number- expression
fn(arguments$0, name$1, index$2, acc$3) => match @core.list-get(list: $0, index: $2) { #none(_) => $3, #some(argument$10) => @core.call-argument-rank( arguments: $0, name: $1, index: @core.plus(left: $2, right: 1), acc: match @core.string-less-than(left: $10.name, right: $1) { true => @core.plus(left: $3, right: 1), false => $3 } ) }
- visibility
- public
core.call-argument-rank (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: W7JSkKzDVIPxIKIqc2ivcmyr4VmXAmS3aGy7rCzO6d4 content hash: tZK0TF153hMOYRQK8l2GXWL10Bfp-8LYlaVStm4UhHw