|
static IEnumerable< TResult > | Cartesian< TFirst, TSecond, TResult > (this IEnumerable< TFirst > first, IEnumerable< TSecond > second, Func< TFirst, TSecond, TResult > resultSelector) |
| Returns the Cartesian product of two sequences by combining each element of the first set with each in the second and applying the user=define projection to the pair.
|
|
static IEnumerable< TSource > | Prepend< TSource > (this IEnumerable< TSource > source, TSource value) |
| Prepends a single value to a sequence.
|
|
static IEnumerable< T > | Concat< T > (this T head, IEnumerable< T > tail) |
| Returns a sequence consisting of the head element and the given tail elements.
|
|
static IEnumerable< T > | Concat< T > (this IEnumerable< T > head, T tail) |
| Returns a sequence consisting of the head elements and the given tail element.
|
|
static IEnumerable< T > | Exclude< T > (this IEnumerable< T > sequence, int startIndex, int count) |
| Excludes count elements from a sequence starting at a given index.
|
|
static IEnumerable< KeyValuePair< int, TSource > > | Index< TSource > (this IEnumerable< TSource > source) |
| Returns a sequence of KeyValuePair<TKey,TValue> where the key is the zero-based index of the value in the source sequence.
|
|
static IEnumerable< KeyValuePair< int, TSource > > | Index< TSource > (this IEnumerable< TSource > source, int startIndex) |
| Returns a sequence of KeyValuePair<TKey,TValue> where the key is the index of the value in the source sequence. An additional parameter specifies the starting index.
|
|
static TResult | Fold< T, TResult > (this IEnumerable< T > source, Func< T, TResult > folder) |
| Returns the result of applying a function to a sequence of 1 element.
|
|
static TResult | Fold< T, TResult > (this IEnumerable< T > source, Func< T, T, TResult > folder) |
| Returns the result of applying a function to a sequence of 2 elements.
|
|
static TResult | Fold< T, TResult > (this IEnumerable< T > source, Func< T, T, T, TResult > folder) |
| Returns the result of applying a function to a sequence of 3 elements.
|
|
static TResult | Fold< T, TResult > (this IEnumerable< T > source, Func< T, T, T, T, TResult > folder) |
| Returns the result of applying a function to a sequence of 4 elements.
|
|
static void | ForEach< T > (this IEnumerable< T > source, Action< T > action) |
| Immediately executes the given action on each element in the source sequence.
|
|
static IEnumerable< TResult > | Pairwise< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, TSource, TResult > resultSelector) |
| Returns a sequence resulting from applying a function to each element in the source sequence and its predecessor, with the exception of the first element which is only returned as the predecessor of the second element.
|
|
static string | ToDelimitedString< TSource > (this IEnumerable< TSource > source) |
| Creates a delimited string from a sequence of values. The delimiter used depends on the current culture of the executing thread.
|
|
static string | ToDelimitedString< TSource > (this IEnumerable< TSource > source, string delimiter) |
| Creates a delimited string from a sequence of values and a given delimiter.
|
|
static IEnumerable< T > | Tail< T > (this IEnumerable< T > source) |
| Return everything except first element and throws exception if empty.
|
|
static IEnumerable< T > | TailNoFail< T > (this IEnumerable< T > source) |
| Return everything except first element without throwing exception if empty.
|
|
static IEnumerable< T > | Memoize< T > (this IEnumerable< T > source) |
| Captures current state of a sequence.
|
|
static IEnumerable< T > | Materialize< T > (this IEnumerable< T > source) |
| Creates an immutable copy of a sequence.
|
|
static T | Choice< T > (this IEnumerable< T > source) |
| Selects a random element.
|
|
static IEnumerable< T > | Intersperse< T > (this IEnumerable< T > source, T element) |
| Takes an element and a sequence and ‘intersperses’ that element between its elements.
|
|
static IEnumerable< T > | FlattenOnce< T > (this IEnumerable< IEnumerable< T > > source) |
| Flattens a sequence by one level.
|
|
static IEnumerable< string > | FlattenOnce (this IEnumerable< string > source) |
| Reduces a sequence of strings to a sequence of parts, splitted by space, of each original string.
|
|
static Maybe< T > | TryHead< T > (this IEnumerable< T > source) |
| Safe function that returns Just(first element) or None.
|
|
static Maybe< IEnumerable< T > > | ToMaybe< T > (this IEnumerable< T > source) |
| Turns an empty sequence to Nothing, otherwise Just(sequence).
|
|
|
static IEnumerable< TSource > | AssertCountImpl< TSource > (IEnumerable< TSource > source, int count, Func< int, int, Exception > errorSelector) |
|
static IEnumerable< TSource > | ExpectingCountYieldingImpl< TSource > (IEnumerable< TSource > source, int count, Func< int, int, Exception > errorSelector) |
|
static IEnumerable< T > | ExcludeImpl< T > (IEnumerable< T > sequence, int startIndex, int count) |
|
static TResult | FoldImpl< T, TResult > (IEnumerable< T > source, int count, Func< T, TResult > folder1, Func< T, T, TResult > folder2, Func< T, T, T, TResult > folder3, Func< T, T, T, T, TResult > folder4) |
|
static Exception | OnFolderSourceSizeError (int cmp, int count) |
|
static IEnumerable< TResult > | PairwiseImpl< TSource, TResult > (this IEnumerable< TSource > source, Func< TSource, TSource, TResult > resultSelector) |
|
static string | ToDelimitedStringImpl< T > (IEnumerable< T > source, string delimiter, Func< StringBuilder, T, StringBuilder > append) |
|