core.function-type-parameter-find
- description
- The type of the parameter named name in a function type, or none
- type
Fn(parameters: List<Record{name: String, type: @core.type-ast}>, name: String, index: Number) -> Union{#none, #some(@core.type-ast)}- expression
fn(parameters$0, name$1, index$2) => match @core.list-get(list: $0, index: $2) { #none(_) => #none, #some(parameter$10) => match @core.equal(left: $10.name, right: $1) { true => #some($10.type), false => @core.function-type-parameter-find(parameters: $0, name: $1, index: @core.plus(left: $2, right: 1)) } }
- visibility
- public
core.function-type-parameter-find (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc) id: E8UptQspvTj3Mo2kgn04efRxDM3AG0RABFShbH2rmlU content hash: gczYRuPRomw6r_yclZeXB9ODrs3QqAuYTVtLocIhP-E