MoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static TResult AggregateRight<TSource, TAccumulate, TResult>( this IEnumerable<TSource> source, TAccumulate seed, Func<TSource, TAccumulate, TAccumulate> func, Func<TAccumulate, TResult> resultSelector )
<ExtensionAttribute> Public Shared Function AggregateRight(Of TSource, TAccumulate, TResult) ( source As IEnumerable(Of TSource), seed As TAccumulate, func As Func(Of TSource, TAccumulate, TAccumulate), resultSelector As Func(Of TAccumulate, TResult) ) As TResult
public: [ExtensionAttribute] generic<typename TSource, typename TAccumulate, typename TResult> static TResult AggregateRight( IEnumerable<TSource>^ source, TAccumulate seed, Func<TSource, TAccumulate, TAccumulate>^ func, Func<TAccumulate, TResult>^ resultSelector )
[<ExtensionAttribute>] static member AggregateRight : source : IEnumerable<'TSource> * seed : 'TAccumulate * func : Func<'TSource, 'TAccumulate, 'TAccumulate> * resultSelector : Func<'TAccumulate, 'TResult> -> 'TResultParameters
Type:
TResultThe transformed final accumulator value.
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)or
Extension Methods (C# Programming Guide).
RemarksThis operator executes immediately.
Examplesvar numbers = Enumerable.Range(1, 5); int result = numbers.AggregateRight("6", (a, b) => string.Format("({0}/{1})", a, b), str => str.Length);
The
resultvariable will contain
21.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4