mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:35:34 +00:00
15 lines
No EOL
318 B
C#
15 lines
No EOL
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;
|
|
}
|
|
} |