Exemplo n.º 1
0
        private IntNTree(DryIoc.Playground.KV <int, V>[] items, IntNTree <V> left, IntNTree <V> right)
        {
            Items    = items;
            LeftKey  = Items[0].Key;
            RightKey = Items[Items.Length - 1].Key;

            Left   = left;
            Right  = right;
            Height = 1 + (left.Height > right.Height ? left.Height : right.Height);
        }
Exemplo n.º 2
0
 private IntNTree <V> With(IntNTree <V> left, IntNTree <V> right)
 {
     return(new IntNTree <V>(Items, left, right));
 }