Explorer

core.call-argument-find

description
The value of the argument named name, or none
type
Fn(arguments: List<Record{name: String, value: @core.expression}>, name: String, index: Number) -> Union{#none, #some(@core.expression)}
expression
fn(arguments$0, name$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      #none,
    #some(argument$10) =>
      match @core.equal(left: $10.name, right: $1) {
        true =>
          #some($10.value),
        false =>
          @core.call-argument-find(arguments: $0, name: $1, index: @core.plus(left: $2, right: 1))
      }
  }
visibility
public
core.call-argument-find (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: NWPdMFR2b15f1oWgnUTqBhFZU9Y8iyDbB2Stnaadlig
content hash: XWBhQHow8VM4GQpwoVKPI-AabP4k8czc5W-rqYp-e3c