We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccdb86 commit 7cc1ee0Copy full SHA for 7cc1ee0
lib/rrb_tree.ex
@@ -18,6 +18,7 @@ defmodule RrbTree do
18
# Leaf nodes have height = 1.
19
defstruct h: 1, node: %Node{}
20
21
+ # TODO: rewrite add to not use concat, since it doesn't take advantage of leafs with free slots.
22
def add(%RrbTree{} = t, x) do
23
concat(t, %RrbTree{
24
h: 2,
0 commit comments