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)); }
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))); }