namespace Spectre.Console; internal static class StackExtensions { public static void PushRange(this Stack stack, IEnumerable source) { if (stack is null) { throw new ArgumentNullException(nameof(stack)); } if (source != null) { foreach (var item in source) { stack.Push(item); } } } }