Beispiel #1
0
        internal ImMapTree(int key, object data, ImMap <V> left, int rightHeight, ImMap <V> right) : base(key, data)
        {
            Left  = left;
            Right = right;
            var leftHeight = (left as ImMapTree <V>)?.Height ?? 1;

            Height = leftHeight > rightHeight ? leftHeight + 1 : rightHeight + 1;
        }
Beispiel #2
0
 internal ImMapTree(int key, object data, int leftHeight, ImMap <V> left, int rightHeight, ImMap <V> right) : base(key, data)
 {
     Left   = left;
     Right  = right;
     Height = leftHeight > rightHeight ? leftHeight + 1 : rightHeight + 1;
 }
Beispiel #3
0
 internal ImMapTree(int key, object data, ImMap <V> left, ImMap <V> right, int height) : base(key, data)
 {
     Left   = left;
     Right  = right;
     Height = height;
 }