Class Ast.AsPat

  • Enclosing class:
    Ast

    public static class Ast.AsPat
    extends Ast.Pat
    Layered pattern.

    For example, in "val h as (i, j) = (1, 2)", if the pattern matches, "h" is assigned the whole tuple, and "i" and "j" are assigned the left and right members of the tuple.