Exemplo n.º 1
0
		public static Rope<T> Concat(Rope<T> left, Rope<T> right)
		{
			if (left == null)
				throw new ArgumentNullException("left");
			if (right == null)
				throw new ArgumentNullException("right");
			left.root.Publish();
			right.root.Publish();
			return new Rope<T>(RopeNode<T>.Concat(left.root, right.root));
		}
Exemplo n.º 2
0
 public static Rope <T> Concat(Rope <T> left, Rope <T> right)
 {
     if (left == null)
     {
         throw new ArgumentNullException(nameof(left));
     }
     if (right == null)
     {
         throw new ArgumentNullException(nameof(right));
     }
     left.root.Publish();
     right.root.Publish();
     return(new Rope <T>(RopeNode <T> .Concat(left.root, right.root)));
 }