Function cloneTree

  • Clones a prolly-tree. The mutate function will mutate the given prolly-tree, assuming no errors are thrown. This function can be used to keep old versions of a tree after it has been mutated.

    Parameters

    • tree: ProllyTree

    Returns ProllyTree