// AppendChain duplicates a chain and links it to the current chain.
AppendChain duplicates a chain and links it to the current chain.
// AppendChain duplicates a chain and links it to the current chain .
func (chain *Chain) AppendChain(tail *Chain) (newChain *Chain) {
	newChain = tail.copy()
	newChain.head().parent = chain
	return
}
func ( chain * Chain ) AppendChain ( tail * Chain ) ( newChain * Chain ) { newChain = tail . copy ( ) newChain . head ( ) . parent = chain return }
AppendChain duplicates a chain and links it to the current chain.
AppendChain duplicates a chain and links it to the current chain .
// Copy the chain to attach // Attach the chain to extend to the new tail // Return the new tail