-module(helloworld). -export([start/0]). start() -> Lst1 = [{"a",1},{"b",2},{"c",3}], Map1 = maps:from_list(Lst1), io:fwrite("~p~n",[maps:keys(Map1)]).
-module(helloworld). -export([start/0]). start() -> Lst1 = [{"a",1},{"b",2},{"c",3}], Map1 = maps:from_list(Lst1), io:fwrite("~p~n",[maps:is_key("a",Map1)]).
-module(helloworld). -export([start/0]). start() -> Lst1 = [{"a",1},{"b",2},{"c",3}], Map1 = maps:from_list(Lst1), io:fwrite("~p~n",[maps:get("a",Map1)]).
-module(helloworld). -export([start/0]). start() -> Lst1 = [{"a",1},{"b",2},{"c",3}], Map1 = maps:from_list(Lst1), io:fwrite("~p~n",[maps:find("a",Map1)]).
-module(helloworld). -export([start/0]). start() -> Lst1 = [{"a",1},{"b",2},{"c",3}], io:fwrite("~p~n",[maps:from_list(Lst1)]).
-module(helloworld). -export([start/0]). start() -> M1 = #{name=>john,age=>25}, io:fwrite("~w",[map_size(M1)]).
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[binary_to_atom(<<"Erlang">>, latin1)]).
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[atom_to_binary('Erlang', utf8)]).
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[list_to_atom("atom1")]).
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[atom_to_list(atom1)]).
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more