qamp/Qrakhen.Qamp.Core/IStack.cs

13 lines
226 B
C#

namespace Qrakhen.Qamp.Core;
public interface IStack<out TKey, TValue> : IPush<TKey, TValue>, IPop<TValue>;
public interface IPush<out TKey, in T>
{
TKey Push(T value);
}
public interface IPop<out T>
{
T Pop();
}