lib/transient.js
function get(tree, i) {
	if (i < 0 || i >= tree.size) {
		return undefined;
	}
	var offset = (0, _util.tailOffset)(tree);
	if (i >= offset) {
		return tree.tail[i - offset];
	}
	return (0, _util.getRoot)(i, tree.root);
}
function get(tree, i) {
	if (i < 0 || i >= tree.size) {
		return undefined;
	}
	var offset = (0, _util.tailOffset)(tree);
	if (i >= offset) {
		return tree.tail[i - offset];
	}
	return (0, _util.getRoot)(i, tree.root);
}
function get ( tree , i ) { if ( i < 0 || i >= tree . size ) { return undefined ; } var offset = ( 0 , _util . tailOffset ) ( tree ) ; if ( i >= offset ) { return tree . tail [ i - offset ] ; } return ( 0 , _util . getRoot ) ( i , tree . root ) ; }
Gets the value at index i recursively.
Gets the value at index i recursively .