summaryrefslogtreecommitdiff
path: root/erlang/double.erl
diff options
context:
space:
mode:
authorGuillermo Ramos2012-05-09 15:45:31 +0200
committerGuillermo Ramos2012-05-09 15:45:31 +0200
commit67a898893884f229d64886a220ba422dd0d66e78 (patch)
tree58cd598350c081acd5ccb508211c670011995dae /erlang/double.erl
parent8172bdd6bdc9523ebde5dd8c1022e971c0299ada (diff)
download7l-67a898893884f229d64886a220ba422dd0d66e78.tar.gz
[Erlang] Día 2
Diffstat (limited to 'erlang/double.erl')
-rw-r--r--erlang/double.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/erlang/double.erl b/erlang/double.erl
new file mode 100644
index 0000000..55d1f47
--- /dev/null
+++ b/erlang/double.erl
@@ -0,0 +1,5 @@
+-module(double).
+-export([double_all/1]).
+
+double_all([]) -> [];
+double_all([H|T]) -> [H+H | double_all(T)].