mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
15 lines
318 B
C#
15 lines
318 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
namespace Cirno.Scripts.Utils;
|
|||
|
|
|
|||
|
|
public static class QueueExtensions
|
|||
|
|
{
|
|||
|
|
public static Queue<T> EnqueueRange<T>(this Queue<T> queue, IEnumerable<T> items)
|
|||
|
|
{
|
|||
|
|
foreach (var item in items)
|
|||
|
|
{
|
|||
|
|
queue.Enqueue(item);
|
|||
|
|
}
|
|||
|
|
return queue;
|
|||
|
|
}
|
|||
|
|
}
|