public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this SortedDictionary <TKey, TValue> source, IEqualityComparer <TKey>?comparer)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey, TValue>(new ValueWrapper <TKey, TValue>(source), (item => item.Key), (item => item.Value), comparer);
Beispiel #2
0
 public static ValueReadOnlyCollection.SelectIndexEnumerable <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource, TResult> Select <TSource, TResult>(
     this SortedSet <TSource> source,
     SelectorAt <TSource, TResult> selector)
 => ValueReadOnlyCollection.Select <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource, TResult>(new ValueWrapper <TSource>(source), selector);
Beispiel #3
0
 public static Maybe <TSource> TryElementAt <TSource>(this SortedSet <TSource> source, int index)
 => ValueReadOnlyCollection.TryElementAt <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), index);
Beispiel #4
0
 public static void ForEach <TSource>(this SortedSet <TSource> source, ActionAt <TSource> action)
 => ValueReadOnlyCollection.ForEach <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), action);
Beispiel #5
0
 public static bool Any <TSource>(this SortedSet <TSource> source, PredicateAt <TSource> predicate)
 => ValueReadOnlyCollection.Any <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), predicate);
Beispiel #6
0
 public static TSource First <TSource>(this ImmutableHashSet <TSource> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));
Beispiel #7
0
 public static Dictionary <TKey, TSource> ToDictionary <TSource, TKey>(this SortedSet <TSource> source, Selector <TSource, TKey> keySelector)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource, TKey>(new ValueWrapper <TSource>(source), keySelector);
 public static bool Contains <TKey, TValue>(this SortedDictionary <TKey, TValue> source, KeyValuePair <TKey, TValue> value, IEqualityComparer <KeyValuePair <TKey, TValue> >?comparer)
 => ValueReadOnlyCollection.Contains <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), value, comparer);
 public static ValueReadOnlyCollection.SelectIndexEnumerable <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TResult> Select <TKey, TValue, TResult>(
     this SortedDictionary <TKey, TValue> source,
     SelectorAt <KeyValuePair <TKey, TValue>, TResult> selector)
 => ValueReadOnlyCollection.Select <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TResult>(new ValueWrapper <TKey, TValue>(source), selector);
 public static ValueReadOnlyCollection.SkipTakeEnumerable <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> > Take <TKey, TValue>(this SortedDictionary <TKey, TValue> source, int count)
 => ValueReadOnlyCollection.Take <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), count);
 public static bool Any <TKey, TValue>(this SortedDictionary <TKey, TValue> source, PredicateAt <KeyValuePair <TKey, TValue> > predicate)
 => ValueReadOnlyCollection.Any <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), predicate);
 public static void ForEach <TKey, TValue>(this SortedDictionary <TKey, TValue> source, ActionAt <KeyValuePair <TKey, TValue> > action)
 => ValueReadOnlyCollection.ForEach <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), action);
 public static Dictionary <TKey2, TElement> ToDictionary <TKey, TValue, TKey2, TElement>(this SortedDictionary <TKey, TValue> source, Selector <KeyValuePair <TKey, TValue>, TKey2> keySelector, Selector <KeyValuePair <TKey, TValue>, TElement> elementSelector)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey2, TElement>(new ValueWrapper <TKey, TValue>(source), keySelector, elementSelector);
 public static Dictionary <TKey2, KeyValuePair <TKey, TValue> > ToDictionary <TKey, TValue, TKey2>(this SortedDictionary <TKey, TValue> source, Selector <KeyValuePair <TKey, TValue>, TKey2> keySelector, IEqualityComparer <TKey2>?comparer)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey2>(new ValueWrapper <TKey, TValue>(source), keySelector, comparer);
Beispiel #15
0
 public static ValueReadOnlyCollection.SelectEnumerable <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TResult> Select <TSource, TResult>(
     this ImmutableHashSet <TSource> source,
     Selector <TSource, TResult> selector)
 => ValueReadOnlyCollection.Select <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TResult>(new ValueWrapper <TSource>(source), selector);
 public static Maybe <KeyValuePair <TKey, TValue> > TryElementAt <TKey, TValue>(this SortedDictionary <TKey, TValue> source, int index)
 => ValueReadOnlyCollection.TryElementAt <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), index);
Beispiel #17
0
 public static TSource ElementAt <TSource>(this ImmutableHashSet <TSource> source, int index)
 => ValueReadOnlyCollection.ElementAt <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), index);
 public static KeyValuePair <TKey, TValue> First <TKey, TValue>(this SortedDictionary <TKey, TValue> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source));
Beispiel #19
0
 public static TSource SingleOrDefault <TSource>(this SortedSet <TSource> source)
 => ValueReadOnlyCollection.SingleOrDefault <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));
Beispiel #20
0
 public static Dictionary <TKey, TSource> ToDictionary <TSource, TKey>(this ImmutableHashSet <TSource> source, Selector <TSource, TKey> keySelector, IEqualityComparer <TKey>?comparer)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TKey>(new ValueWrapper <TSource>(source), keySelector, comparer);
Beispiel #21
0
 public static Dictionary <TKey, TElement> ToDictionary <TSource, TKey, TElement>(this SortedSet <TSource> source, Selector <TSource, TKey> keySelector, Selector <TSource, TElement> elementSelector, IEqualityComparer <TKey>?comparer)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource, TKey, TElement>(new ValueWrapper <TSource>(source), keySelector, elementSelector, comparer);
Beispiel #22
0
 public static Dictionary <TKey, TElement> ToDictionary <TSource, TKey, TElement>(this ImmutableHashSet <TSource> source, Selector <TSource, TKey> keySelector, Selector <TSource, TElement> elementSelector)
 => ValueReadOnlyCollection.ToDictionary <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TKey, TElement>(new ValueWrapper <TSource>(source), keySelector, elementSelector);
Beispiel #23
0
 public static ValueReadOnlyCollection.SkipTakeEnumerable <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource> Take <TSource>(this SortedSet <TSource> source, int count)
 => ValueReadOnlyCollection.Take <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), count);
Beispiel #24
0
 public static void ForEach <TSource>(this ImmutableHashSet <TSource> source, Action <TSource> action)
 => ValueReadOnlyCollection.ForEach <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), action);
Beispiel #25
0
 public static bool Contains <TSource>(this SortedSet <TSource> source, TSource value, IEqualityComparer <TSource>?comparer)
 => ValueReadOnlyCollection.Contains <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), value, comparer);
Beispiel #26
0
 public static ValueReadOnlyCollection.SkipTakeEnumerable <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource> Skip <TSource>(this ImmutableHashSet <TSource> source, int count)
 => ValueReadOnlyCollection.Skip <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), count);
Beispiel #27
0
 public static TSource ElementAtOrDefault <TSource>(this SortedSet <TSource> source, int index)
 => ValueReadOnlyCollection.ElementAtOrDefault <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), index);
Beispiel #28
0
 public static bool Any <TSource>(this ImmutableHashSet <TSource> source, Predicate <TSource> predicate)
 => ValueReadOnlyCollection.Any <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), predicate);
Beispiel #29
0
 public static TSource First <TSource>(this SortedSet <TSource> source)
 => ValueReadOnlyCollection.First <ValueWrapper <TSource>, SortedSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));
Beispiel #30
0
 public static Option <TSource> Single <TSource>(this LinkedList <TSource> source)
 => ValueReadOnlyCollection.Single <ValueWrapper <TSource>, LinkedList <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source));