We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afa2da6 + a3f05ef commit cc5cb51Copy full SHA for cc5cb51
src/maps_utils.app.src
@@ -1,6 +1,6 @@
1
{application, maps_utils,
2
[{description, "An OTP application"},
3
- {vsn, "1.0.0"},
+ {vsn, "1.1.0"},
4
{registered, []},
5
{mod, {maps_utils_app, []}},
6
{applications,
src/maps_utils.erl
@@ -667,6 +667,12 @@ maybe_get(Key, Map, Default) ->
667
668
669
%% @private
670
+do_put_path(Keys, Value, undefined) ->
671
+ do_put_path(Keys, Value, #{});
672
+
673
+do_put_path(Keys, Value, null) ->
674
675
676
do_put_path([Key], Value, Map) ->
677
maps:put(Key, Value, Map);
678
@@ -684,6 +690,12 @@ do_put_path(Key, Value, Map) ->
684
690
685
691
686
692
693
+do_append_list_path(Keys, Value, undefined) ->
694
+ do_append_list_path(Keys, Value, #{});
695
696
+do_append_list_path(Keys, Value, null) ->
697
698
687
699
do_append_list_path([Key], Value, Map) ->
688
700
append_list(Key, Value, Map);
689
701
@@ -701,6 +713,12 @@ do_append_list_path(Key, Value, Map) ->
713
702
714
703
715
716
+do_remove_path(_, undefined) ->
717
+ undefined;
718
719
+do_remove_path(_, null) ->
720
+ null;
721
704
722
do_remove_path([Key], Map) ->
705
723
maps:remove(Key, Map);
706
724
0 commit comments