Skip to content

Instantly share code, notes, and snippets.

View ddqd's full-sized avatar
🐕
🐱

Dmitry ddqd

🐕
🐱
View GitHub Profile
-module(urljoin).
-compile([export_all]).
s() ->
lists:flatten(urljoin([{foo, "bar"}, {baz, "quux"}, {fubar, "ok"}])).
%%iolist_to_binary(urljoin([{foo, "bar"}, {baz, "quux"}, {fubar, "ok"}])).
urljoin([{K, V}]) ->
[atom_to_list(K), "=", V];