darq library
Classes
-
Enumerable<T>
-
The base class for all enumerables. Allows advanced enumeration methods
to be performed on the underlying collection. [...]
-
EqualityComparer<T>
-
Used in various enumeration methods for allowing user-defined comparisons
between complex elements. [...]
Functions
-
E<T>(Iterable<T> iterable)
→ Enumerable<T>
-
A convenience method to transform an Iterable into an Enumerable.
Typedefs
-
Aggregator<T>(T accumulate, T value)
→ T
-
Takes an accumulate and a value of type
T
, then aggregates the value
into the accumulate and returns the result.
-
CastTransformer<TSource, TResult>(TSource element)
→ TResult
-
Takes an element of type
TSource
and casts it to type TResult
, returning
the result of the cast.
-
Comparer<T>(T left, T right)
→ bool
-
Takes two elements of type
T
and checks them for equality, returning true
if the elements are equal and false
otherwise.
-
Condition<T>(T element)
→ bool
-
Takes an element and defines a condition, then returns
true
if the element
satisfies the condition and false
otherwise.
-
GroupSelector<TKey, TSource, TResult>(TKey key, TSource group)
→ TResult
-
Takes a key of type
TKey
and a group of type TSource
and maps them to a
value of type TResult
, returning the result of the mapping. (The group will
typically be an instance of IGrouping
.)
-
Hasher<T>(T value)
→ int
-
Takes an element of type
T
and computes its hash code, returning the code's
integer value.
-
LookupSelector<TKey, TValue, TResult>(TKey key, TValue value)
→ TResult
-
Takes an key of type
TKey
and a value of type TValue
and maps
them into a value of type TResult
, returning the value.
-
ManySelector<TSource, TResult>(TSource element)
→ Iterable<TResult>
-
Takes an element of type
TSource
and transforms it into an Iterable
of
type , returning the result of the transformation.
-
Selector<TSource, TResult>(TSource element)
→ TResult
-
Takes an element of type
TSource
and maps it to a value of type TResult
.
-
Sorter<T>(T left, T right)
→ int
-
Takes two values of type
T
and computes their sort order, represented by
a returned integer value. [...]
-
ZipSelector<TFirst, TSecond, TResult>(TFirst first, TSecond second)
→ TResult
-
Takes an element of type
TFirst
and an element of type TSecond
and maps
them into a value of type TResult
, returning the value.