Explorer

core.compile-add-arm-tags

description
Adds the tags of match arms other than _, from index, to the list of distinct strings
type
Fn(strings: List<String>, arms: List<@core.match-arm>, index: Number) -> List<String>
expression
fn(strings$0, arms$1, index$2) =>
  match @core.list-get(list: $1, index: $2) {
    #none(_) =>
      $0,
    #some(arm$10) =>
      @core.compile-add-arm-tags(
        strings: @core.compile-add-pattern-strings(strings: $0, pattern: $10.pattern),
        arms: $1,
        index: @core.plus(left: $2, right: 1)
      )
  }
visibility
public
core.compile-add-arm-tags (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: -0aflHbVgQwbyM4b-47-lgJDg-ydm67vK-oS33pR5pY
content hash: bOCef7UP19570Xtf6hqpD6rtZIuOgCVYwLkQfbs9-nk