Explorer

core.type-substitute-parameters

description
core.type-substitute for each type of a list of {name, type} (parameters of a function type, arguments of apply)
type
Fn(
  parameters: List<Record{name: String, type: @core.type-ast}>,
  arguments: List<Record{name: String, type: @core.type-ast}>,
  index: Number,
  accum: List<Record{name: String, type: @core.type-ast}>
) -> List<Record{name: String, type: @core.type-ast}>
expression
fn(parameters$0, arguments$1, index$2, accum$3) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      $3,
    #some(parameter$4) =>
      @core.type-substitute-parameters(
        parameters: $0,
        arguments: $1,
        index: @core.plus(left: $2, right: 1),
        accum: @core.list-append(list: $3, item: {name: $4.name, type: @core.type-substitute(type: $4.type, arguments: $1)})
      )
  }
visibility
public
core.type-substitute-parameters (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: C8eGE6abFqsBzrLx3mN_rZ-Dm9e8Jaq2_9wYDrV2P1w
content hash: DyuwbIQkT5STbF8FRwzBqEQKO8-PTe8Tl1aVAiwmFdQ