Beispiel #1
0
        public Map(IValueIterable <T> collection) : this(default_capacity)
        {
            if (collection == null)
            {
                return;
            }

            for (IValueIterator <T> x = collection.Begin(); x.IsAlive; x.Add())
            {
                if (x.Value != null)
                {
                    Add(x.Value.GetHashCode(), x.Value);
                }
            }
        }
Beispiel #2
0
 public IIterableView(IValueIterable <T> inst) => arr = inst.ToArray();