effect-io-ai

Package: effect
Module: Match

Match.Case

Represents a single pattern matching case.

When to use

Use as the common public type for code that needs to inspect, store, or pass either positive or negative pattern matching cases.

Details

A Case can be either a positive match (When) or a negative match (Not). Cases are the building blocks of pattern matching logic and determine how values are tested and transformed.

See

Signature

type Case = When | Not

Source

Since v4.0.0