- All Superinterfaces:
AyaDocile
- All Known Implementing Classes:
Pat.Absurd,Pat.Bind,Pat.Ctor,Pat.Meta,Pat.ShapedInt,Pat.Tuple
public sealed interface Pat
extends AyaDocile
permits Pat.Meta, Pat.Bind, Pat.Absurd, Pat.Tuple, Pat.Ctor, Pat.ShapedInt
Patterns in the core syntax.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic final recordMeta for Holestatic final recordPat.Preclause<T extends AyaDocile>It's 'pre' because there are also impossible clauses, which are removed after tycking.static final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionbooleanexplicit()static @NotNull kala.collection.immutable.ImmutableSeq<Term.Param>extractTele(@NotNull kala.collection.SeqLike<Pat> pats) @NotNull PatMake sure you are inline all patterns in ordervoidstoreBindings(@NotNull LocalCtx ctx) default @NotNull org.aya.util.Arg<Term>toArg()default @NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.distill.DistillerOptions options) default @NotNull TermtoTerm()@NotNull PatMethods inherited from interface org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
Method Details
-
explicit
boolean explicit() -
toTerm
-
toArg
-
toDoc
@NotNull default @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) -
zonk
-
inline
Make sure you are inline all patterns in order- Parameters:
ctx- when null, the solutions will not be inlined- Returns:
- inlined patterns
-
storeBindings
-
extractTele
@NotNull static @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> extractTele(@NotNull @NotNull kala.collection.SeqLike<Pat> pats)
-