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.
15 lines
527 B
15 lines
527 B
namespace MemoryPools.Collections.Linq
|
|
{
|
|
public static partial class PoolingEnumerable
|
|
{
|
|
public static IPoolingEnumerable<T> Skip<T>(this IPoolingEnumerable<T> source, int count)
|
|
{
|
|
return Pool<SkipTakeExprPoolingEnumerable<T>>.Get().Init(source, false, count);
|
|
}
|
|
|
|
public static IPoolingEnumerable<T> Take<T>(this IPoolingEnumerable<T> source, int count)
|
|
{
|
|
return Pool<SkipTakeExprPoolingEnumerable<T>>.Get().Init(source, true, count);
|
|
}
|
|
}
|
|
} |