func (v *View) Merge(other *View) {
	// Copy over all buffers.
	for buf := other.data.Front(); buf != nil && !buf.Empty(); buf = other.data.Front() {
		other.data.Remove(buf)
		v.data.PushBack(buf)
	}

	// Adjust sizes.
	v.size += other.size
	other.size = 0
}
// Merge merges the provided View with this one.
//
// The other view will be empty after this operation.
Merge merges the provided View with this one.

The other view will be empty after this operation.
// Merge merges the provided View with this one . // // The other view will be empty after this operation .
func (v *View) Merge(other *View) {
	for buf := other.data.Front(); buf != nil && !buf.Empty(); buf = other.data.Front() {
		other.data.Remove(buf)
		v.data.PushBack(buf)
	}
	v.size += other.size
	other.size = 0
}
func ( v * View ) Merge ( other * View ) { for buf := other . data . Front ( ) ; buf != nil && ! buf . Empty ( ) ; buf = other . data . Front ( ) { other . data . Remove ( buf ) v . data . PushBack ( buf ) } v . size += other . size other . size = 0 }
Merge merges the provided View with this one.
Merge merges the provided View with this one .
// Copy over all buffers. // Adjust sizes.