createTwoPartTreeTuple

fun createTwoPartTreeTuple(left: A_Tuple, right: A_Tuple, newLevel: Int, newHashOrZero: Int): AvailObject

Create a 2-child tree tuple at the specified level. The children must both be at newLevel - 1. Neither may be empty.

Return

A new tree tuple at newLevel.

Parameters

left

The left child.

right

The right child.

newLevel

The level at which to create a new node.

newHashOrZero

The new hash, or zero if inconvenient to produce.