예제 #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));
		}
예제 #2
0
파일: Rope.cs 프로젝트: arkanoid1/Yanitta
 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)));
 }