Explorer

core.quote-name-type-list

description
Expressions that rebuild each item of the list from the index (used by quote)
type
Fn(items: List<Record{name: String, type: @core.expression}>, index: Number) -> List<@core.expression>
expression
fn(items$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      [],
    #some(item$1002) =>
      @core.list-concat(
        left: [
          #record<@core.expression>([
            {key: "name", value: #string<@core.expression>($1002.name)},
            {key: "type", value: @core.quote-expression(expr: $1002.type)}
          ])
        ],
        right: @core.quote-name-type-list(items: $0, index: @core.plus(left: $1, right: 1))
      )
  }
visibility
public
core.quote-name-type-list (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: UryYFa-gHUwRvQlgWY_rO_Xh6dKmic0IfN8yZ4iJad4
content hash: 5UzW80t4-klm3Jo14FPjJ0XYLvgLAJbFBLChqpfD2wM