System.Collections.Immutable by Microsoft

<PackageReference Include="System.Collections.Immutable" Version="1.4.0-preview2-25405-01" />

.NET API 181,136 bytes

 ImmutableStack

public static class ImmutableStack
A set of initialization methods for instances of ImmutableStack<T>.
public static ImmutableStack<T> Create<T>()

Returns an empty collection.

public static ImmutableStack<T> Create<T>(T item)

Creates a new immutable collection prefilled with the specified item.

public static ImmutableStack<T> Create<T>(T[] items)

Creates a new immutable collection prefilled with the specified items.

public static ImmutableStack<T> CreateRange<T>(IEnumerable<T> items)

Creates a new immutable collection prefilled with the specified items.

public static IImmutableStack<T> Pop<T>(this IImmutableStack<T> stack, out T value)

Pops the top element off the stack.