effect-io-ai

Package: effect
Module: Match

Match.Types.PatternPrimitive

Defines primitive patterns that can match simple values.

Details

This type represents the building blocks of pattern matching: predicates, literal values, and safe refinements. These are the atomic patterns that can be composed into more complex matching logic.

Signature

type PatternPrimitive<A> = PredicateA<A> | A | SafeRefinement<any>

Source

Since v4.0.0