Initial commit

This commit is contained in:
2026-03-03 00:39:30 +05:00
commit fc01f07d9b
29933 changed files with 5353098 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections;
namespace Unity.Collections
{
internal struct Pair<Key, Value>
{
public Key key;
public Value value;
public Pair(Key k, Value v)
{
key = k;
value = v;
}
public override string ToString()
{
return $"{key} = {value}";
}
}
// Tiny does not contains an IList definition (or even ICollection)
internal struct ListPair<Key, Value> where Value : IList
{
public Key key;
public Value value;
public ListPair(Key k, Value v)
{
key = k;
value = v;
}
public override string ToString()
{
String result = $"{key} = [";
for (var v = 0; v < value.Count; ++v)
{
result += value[v];
if (v < value.Count - 1)
result += ", ";
}
result += "]";
return result;
}
}
}