// UseTreeBitWidth allows you to set a custom bitWidth of the HAMT in bits
// (from 1-8).
//
// Passing in the returned Option to NewNode will generate a new HAMT that uses
// the specified bitWidth.
//
// The default bitWidth is 8.
UseTreeBitWidth allows you to set a custom bitWidth of the HAMT in bits
(from 1-8).

Passing in the returned Option to NewNode will generate a new HAMT that uses
the specified bitWidth.

The default bitWidth is 8.
// UseTreeBitWidth allows you to set a custom bitWidth of the HAMT in bits // ( from 1 - 8 ) . // // Passing in the returned Option to NewNode will generate a new HAMT that uses // the specified bitWidth . // // The default bitWidth is 8 .
func UseTreeBitWidth(bitWidth int) Option {
	return func(nd *Node) {
		if bitWidth > 0 && bitWidth <= 8 {
			nd.bitWidth = bitWidth
		}
	}
}
func UseTreeBitWidth ( bitWidth int ) Option { return func ( nd * Node ) { if bitWidth > 0 && bitWidth <= 8 { nd . bitWidth = bitWidth } } }
UseTreeBitWidth allows you to set a custom bitWidth of the HAMT in bits
(from 1-8).
UseTreeBitWidth allows you to set a custom bitWidth of the HAMT in bits ( from 1 - 8 ) .