You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/MemoryPools/Collections/Linq/Select.cs

17 lines
561 B

using System;
namespace MemoryPools.Collections.Linq
{
public static partial class PoolingEnumerable
{
public static IPoolingEnumerable<TR> Select<T, TR>(this IPoolingEnumerable<T> source, Func<T, TR> mutator)
{
return Pool<SelectExprEnumerable<T, TR>>.Get().Init(source, mutator);
}
public static IPoolingEnumerable<TR> Select<T, TR, TContext>(this IPoolingEnumerable<T> source, TContext context, Func<TContext, T, TR> mutator)
{
return Pool<SelectExprWithContextEnumerable<T, TR, TContext>>.Get().Init(source, context, mutator);
}
}
}

Powered by TurnKey Linux.