Explorer

core.quote-match-arm-list

description
Expressions that build the match arms (for quote)
type
Fn(items: List<@core.match-arm>, index: Number) -> List<@core.expression>
expression
fn(items$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      [],
    #some(item$10) =>
      @core.list-concat(
        left: [
          #record<@core.expression>([
            {key: "pattern", value: @core.quote-pattern(pattern: $10.pattern)},
            {key: "body", value: @core.quote-expression(expr: $10.body)}
          ])
        ],
        right: @core.quote-match-arm-list(items: $0, index: @core.plus(left: $1, right: 1))
      )
  }
visibility
public
core.quote-match-arm-list (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: JViq1Kt-L6MkxXAx5RijdJH8et3ku0N5kLZuglNfxR8
content hash: cmPto9Hc6SD78Ik7pW-ihe5N3_hbLt_WuKlkcz1ozW4