mirror of
https://github.com/AssetRipper/AssetRipper.Bindings.LibTorchSharp.git
synced 2026-11-13 04:26:21 -10:00
12 lines
316 B
C#
12 lines
316 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace AssetRipper.Bindings.LibTorchSharp.SourceGenerator.Extensions;
|
|
|
|
internal static class ReadOnlyCollectionExtensions
|
|
{
|
|
public static IEnumerable<T> SkipLast<T>(this IReadOnlyCollection<T> source, int n)
|
|
{
|
|
return source.Take(source.Count - n);
|
|
}
|
|
} |