Skip to content

kudima03/Pure.Linq.Conditions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

117 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pure.Linq.Conditions

LINQ-compatible IBool conditions over IEnumerable<T> sequences for the Pure ecosystem.

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

Overview

Pure.Linq.Conditions provides sealed record types that evaluate structural conditions over IEnumerable<T> sequences and expose the result as IBool. Each condition is a composable value object — lazy, side-effect-free, and fully AOT-compatible.

Types

Type True when
EmptyCondition<T> The sequence contains no elements
NotEmptyCondition<T> The sequence contains at least one element
EqualCondition<T> Two sequences contain identical elements in the same order
NotEqualCondition<T> Two sequences differ in length or element values

All types accept IEnumerable<T> and implement IBool from Pure.Primitives.Abstractions.

Design Principles

  • IBool results — every condition returns an IBool, keeping results composable within the Pure type system.
  • Lazy evaluation — the sequence is enumerated only when .BoolValue is accessed.
  • AOT-compatible — no reflection; generic constraints are resolved at compile time.

Dependencies

About

LINQ-compatible IBool conditions over IEnumerable<T> sequences for the Pure ecosystem — Empty, NotEmpty, Equal, and NotEqual.

Resources

License

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

Generated from kudima03/Pure.Template