Skip to content

Custom Aggregate for double[] #126

@dcolleoni

Description

@dcolleoni

Implement

#r "nuget:morelinq
using static MoreLinq.Extensions.ZipLongestExtension;
public static double[] AggregateDoubleArray(this IEnumerable<IEnumerable> source) => source.Aggregate((x, y) => x.ZipLongest(y, (a, b) => a + b)).ToArray();

in Utils/Extensions NB

Check git hash d615717

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions