diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-03-17 20:49:22 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-03-17 20:49:22 +1000 |
| commit | 18868128e18d38b706e7df14e8e683e1a9739c17 (patch) | |
| tree | 6f0e0e5eee646f10cbad9c0c89c24d330bc58cc6 /Emulator/Extensions.cs | |
| parent | d87ab8af4c86a3fc6ee237444e372d87e536e3ef (diff) | |
chore: Initial commit
Diffstat (limited to 'Emulator/Extensions.cs')
| -rw-r--r-- | Emulator/Extensions.cs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Emulator/Extensions.cs b/Emulator/Extensions.cs deleted file mode 100644 index 3cc980d..0000000 --- a/Emulator/Extensions.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace Q1.Emulator; - -using System.Collections.Generic; - -public static class Extensions -{ - public static IEnumerable<int> AllIndexesOf<T>(this IEnumerable<T> arr, T q) - { - var indexes = new List<int>(); - int index = 0; - - foreach (var item in arr) - { - if (EqualityComparer<T>.Default.Equals(item, q)) - { - indexes.Add(index); - } - index++; - } - - return indexes; - } -}
\ No newline at end of file |
