We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d948599 commit a79fbd1Copy full SHA for a79fbd1
Makefile
@@ -1,6 +1,6 @@
1
PROJECT = ailib
2
PROJECT_DESCRIPTION = Base lib for products from ailink.io
3
-PROJECT_VERSION = 0.3.4
+PROJECT_VERSION = 0.3.5
4
5
include erlang.mk
6
src/stdlib/ai_proplists.erl
@@ -0,0 +1,9 @@
+-module(ai_proplists).
+-export([merge/2]).
+
+merge(P1,[]) ->P1;
+merge(P1,[{K,_} = H| T]) ->
+ case proplists:is_defined(K,P1) of
7
+ true -> merge(P1,T);
8
+ false -> merge([H|P1],T)
9
+ end.
0 commit comments