Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Generic-swap/Erlang/generic-swap-1.erl
Normal file
4
Task/Generic-swap/Erlang/generic-swap-1.erl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
1> L = [a, 2].
|
||||
[a,2]
|
||||
2> lists:reverse(L).
|
||||
[2,a]
|
||||
4
Task/Generic-swap/Erlang/generic-swap-2.erl
Normal file
4
Task/Generic-swap/Erlang/generic-swap-2.erl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
1> T = {2,a}.
|
||||
{2,a}
|
||||
2> list_to_tuple(lists:reverse(tuple_to_list(T))).
|
||||
{a,2}
|
||||
Loading…
Add table
Add a link
Reference in a new issue