Skip to content

Commit 927cbf6

Browse files
committed
Added documentation for RadixTree.remove()
1 parent c59f475 commit 927cbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Radix-Tree/README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The insert function returns true if the String you are trying to insert was succ
2121

2222
### RadixTree.remove(_ str: String) -> Bool
2323

24-
THIS IS NOT IMPLEMENTED YET
24+
The remove function returns true if the String is removed and false if the String is not in the tree. When a string is removed, any other Strings that have a prefix of the removed String are removed as well. For example, remove("rom") will also remove "roman", "rome", and "romulus" if those Strings are in the tree as well. Calling remove("") will remove all Strings in the tree.
2525

2626
### Root.level() -> Int
2727

0 commit comments

Comments
 (0)