Explorer

core.type-match-parameter-fields

description
core.type-match-parameter over the record fields at the same positions
type
Fn(
  patterns: List<Record{key: String, field_type: @core.type-ast}>,
  actuals: List<Record{key: String, field_type: @core.type-ast}>,
  name: String,
  index: Number
) -> Union{#none, #some(@core.type-ast)}
expression
fn(patterns$0, actuals$1, name$2, index$3) =>
  match @core.list-get(list: $0, index: $3) {
    #none(_) =>
      #none,
    #some(pattern_item$4) =>
      match @core.list-get(list: $1, index: $3) {
        #none(_) =>
          #none,
        #some(actual_item$5) =>
          match @core.type-match-parameter(pattern: $4.field_type, actual: $5.field_type, name: $2) {
            #some(found$6) =>
              #some($6),
            _ =>
              @core.type-match-parameter-fields(patterns: $0, actuals: $1, name: $2, index: @core.plus(left: $3, right: 1))
          }
      }
  }
visibility
public
core.type-match-parameter-fields (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: opehgwYpUcidqxDpyq59tBVhGcIdH-5b0cRRSZezXaU
content hash: nTAJdM87i9ZAmfKnJ6d_h8s-D3Of6sPEOLMEoCECzCg