fold_1 function was missing a clause for nil
This commit is contained in:
parent
27d892bfc8
commit
146bb62380
1 changed files with 2 additions and 0 deletions
|
@ -319,6 +319,8 @@ map_1(F, {K, V, Smaller, Larger}) ->
|
|||
fold(Fun, {hamt, _, Node}, Acc) ->
|
||||
fold_1(Fun, Acc, Node).
|
||||
|
||||
fold_1(_F, Acc, nil) ->
|
||||
Acc;
|
||||
fold_1(F, Acc, {snode, Key, Value}) ->
|
||||
F(Key, Value, Acc);
|
||||
fold_1(_F, Acc, {cnode, _, []}) ->
|
||||
|
|
Loading…
Reference in a new issue