mirror of https://github.com/ogoun/Zero.git
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.
17 lines
561 B
17 lines
561 B
3 years ago
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|