14 if (map1.Count() != map2.Count())
18 foreach (
T index, U value : map1)
20 if (!map2.Find(
index, tmp) || tmp != value)
35 if (map1.Count() != map2.Count())
39 foreach (
T index, U value : map1)
41 if (!map2.Find(
index, tmp) || tmp != value)
56 if (map1.Count() != map2.Count())
60 foreach (
T index, U value : map1)
62 if (!map2.Find(
index, tmp) || tmp != value)
77 if (map1.Count() != map2.Count())
81 foreach (
T index, U value : map1)
83 if (!map2.Find(
index, tmp) || tmp != value)
96 static map<T, U> ArraysToMap(notnull array<T> indices, notnull array<U> values)
99 for (
int i, count =
Math.Min(indices.Count(), values.Count()); i < count; i++)
101 result.Insert(indices[i], values[i]);
113 static map<T, ref U> ArraysToMap(notnull array<T> indices, notnull array<ref U> values)
116 for (
int i, count =
Math.Min(indices.Count(), values.Count()); i < count; i++)
118 result.Insert(indices[i], values[i]);
130 static map<ref T, U> ArraysToMap(notnull array<ref T> indices, notnull array<U> values)
133 for (
int i, count =
Math.Min(indices.Count(), values.Count()); i < count; i++)
135 result.Insert(indices[i], values[i]);
147 static map<ref T, ref U> ArraysToMap(notnull array<ref T> indices, notnull array<ref U> values)
150 for (
int i, count =
Math.Min(indices.Count(), values.Count()); i < count; i++)
152 result.Insert(indices[i], values[i]);
162 static array<T> GetKeys(notnull
map<T, U> input)
164 array<T> result = {};
165 foreach (
T key, U value : input)
179 array<T> result = {};
180 foreach (
T key, U value : input)
194 array<ref T> result = {};
195 foreach (
T key, U value : input)
209 array<ref T> result = {};
210 foreach (
T key, U value : input)
222 static array<U> GetElements(notnull
map<T, U> input)
224 array<U> result = {};
225 for (
int i = 0, count = input.Count(); i < count; i++)
227 result.Insert(input.GetElement(i));
239 array<ref U> result = {};
240 foreach (
T key, U value : input)
242 result.Insert(value);
254 array<U> result = {};
255 foreach (
T key, U value : input)
257 result.Insert(value);
269 array<ref U> result = {};
270 foreach (
T key, U value : input)
272 result.Insert(value);
288 foreach (
T key, U value : sender)
290 receiver.Set(key, value);
295 foreach (
T key, U value : sender)
297 receiver.Insert(key, value);
312 foreach (
T key, U value : sender)
314 receiver.Insert(key, value);
319 foreach (
T key, U value : sender)
321 if (!receiver.Contains(key))
322 receiver.Insert(key, value);
337 foreach (
T key, U value : sender)
339 receiver.Insert(key, value);
344 foreach (
T key, U value : sender)
346 if (!receiver.Contains(key))
347 receiver.Insert(key, value);
362 foreach (
T key, U value : sender)
364 receiver.Insert(key, value);
369 foreach (
T key, U value : sender)
371 if (!receiver.Contains(key))
372 receiver.Insert(key, value);