effect-io-ai

Package: effect
Module: Boolean

Boolean.ReducerAnd

Reducer for combining booleans using AND.

When to use

Use to require every accumulated boolean to be true through APIs that consume a Reducer.

Details

The initialValue is true, so combineAll([]) returns true.

Gotchas

combineAll uses the default left-to-right Reducer.make fold and does not short-circuit on false.

See

Signature

declare const ReducerAnd: Reducer.Reducer<boolean>

Source

Since v4.0.0