A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://morelinq.github.io/3.0/ref/api/html/M_MoreLinq_MoreEnumerable_AggregateRight__2.htm below:

MoreEnumerableAggregateRightTSource, TAccumulate Method (IEnumerableTSource, TAccumulate, FuncTSource, TAccumulate, TAccumulate)

MoreEnumerableAggregateRightTSource, TAccumulate Method (IEnumerableTSource, TAccumulate, FuncTSource, TAccumulate, TAccumulate) Namespace:  MoreLinq
Assembly:

MoreLinq (in MoreLinq.dll) Version: 3.0.0

Syntax
public static TAccumulate AggregateRight<TSource, TAccumulate>(
	this IEnumerable<TSource> source,
	TAccumulate seed,
	Func<TSource, TAccumulate, TAccumulate> func
)
<ExtensionAttribute>
Public Shared Function AggregateRight(Of TSource, TAccumulate) ( 
	source As IEnumerable(Of TSource),
	seed As TAccumulate,
	func As Func(Of TSource, TAccumulate, TAccumulate)
) As TAccumulate
public:
[ExtensionAttribute]
generic<typename TSource, typename TAccumulate>
static TAccumulate AggregateRight(
	IEnumerable<TSource>^ source, 
	TAccumulate seed, 
	Func<TSource, TAccumulate, TAccumulate>^ func
)
[<ExtensionAttribute>]
static member AggregateRight : 
        source : IEnumerable<'TSource> * 
        seed : 'TAccumulate * 
        func : Func<'TSource, 'TAccumulate, 'TAccumulate> -> 'TAccumulate 
Parameters
source
Type: System.Collections.GenericIEnumerableTSource
Source sequence.
seed
Type: TAccumulate
The initial accumulator value.
func
Type: SystemFuncTSource, TAccumulate, TAccumulate
A right-associative accumulator function to be invoked on each element.
Type Parameters
TSource
The type of the elements of source.
TAccumulate
The type of the accumulator value.
Return Value

Type:

TAccumulate

The final accumulator value.

Usage Note

In 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)

.

Remarks

This operator executes immediately.

Examples
var numbers = Enumerable.Range(1, 5);
string result = numbers.AggregateRight("6", (a, b) => string.Format("({0}/{1})", a, b));

The

result

variable will contain

"(1/(2/(3/(4/(5/6)))))"

.

See Also

RetroSearch 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