core.type-substitute-fields
- description
- core.type-substitute for each field type of a record type
- type
Fn( fields: List<Record{key: String, field_type: @core.type-ast}>, arguments: List<Record{name: String, type: @core.type-ast}>, index: Number, accum: List<Record{key: String, field_type: @core.type-ast}> ) -> List<Record{key: String, field_type: @core.type-ast}>- expression
fn(fields$0, arguments$1, index$2, accum$3) => match @core.list-get(list: $0, index: $2) { #none(_) => $3, #some(field$4) => @core.type-substitute-fields( fields: $0, arguments: $1, index: @core.plus(left: $2, right: 1), accum: @core.list-append( list: $3, item: {key: $4.key, field_type: @core.type-substitute(type: $4.field_type, arguments: $1)} ) ) }
- visibility
- public
core.type-substitute-fields (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44) id: rOIYy6ke4lJVPuSsVJaHfg0HW0BuJG-bp8ui0x7LMgg content hash: 6tJZDrvDbY_SCdmYM7q8CbK46WYpXYTmcj8RFYiZtM4