Skip to content

About

Boolean operations for Pure IBool primitives — And, Or, Xor, Not, BitwiseAnd, BitwiseOr, and equality conditions.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Pure.Primitives.Bool.Operations

Boolean operations for Pure IBool primitives — composable, immutable value objects for logical and bitwise bool operations.

.NET build & test Build and Deploy NuGet License: MIT

Overview

Pure.Primitives.Bool.Operations provides sealed record types that implement logical and bitwise operations over IBool values. Each type is a composable value object — the operation is evaluated lazily when .BoolValue is accessed.

Types

Type Implements Description
And IBool Logical AND over a sequence of IBool values
Or IBool Logical OR over a sequence of IBool values
Not IBool Logical NOT of a single IBool value
Xor IBool Logical XOR over a sequence of IBool values
BitwiseAnd IBool Bitwise AND over a sequence of IBool values
BitwiseOr IBool Bitwise OR over a sequence of IBool values
EqualCondition IBool true if all supplied IBool values are equal
NotEqualCondition IBool true if not all supplied IBool values are equal

All types live in the Pure.Primitives.Bool.Operations namespace.

Design Principles

  • Lazy evaluation — the operation is computed only when .BoolValue is accessed.
  • Composable — any IBool can be nested inside another operation.
  • AOT-compatible — no reflection; fully compatible with Native AOT.

Dependencies

About

Boolean operations for Pure IBool primitives — And, Or, Xor, Not, BitwiseAnd, BitwiseOr, and equality conditions.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from kudima03/Pure.Template