delete: Delete a key-value pair from a tree

Description Usage Arguments Details

Description

Delete a key-value pair from a tree

Usage

1
delete(tree, key)

Arguments

tree

A bst

key

The key to delete

Details

If the tree contains the key, then a new tree with the key removed is returned. Otherwise, the original tree is returned, with a warning


tarakc02/rbst documentation built on May 31, 2019, 3:55 a.m.