Created
June 26, 2014 15:25
-
-
Save diogovk/22f35fd8a0a34aedaeaf to your computer and use it in GitHub Desktop.
Elixir -> javascript Challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(1)> l = [1, 2, 3] | |
#=> [1, 2, 3] | |
iex(2)> l2 = tl(l) | |
#=> [2, 3] | |
iex(3)> l2 = [ 0 | l2 ] | |
#=> [0, 2, 3] | |
iex(4)> IO.inspect l | |
[1, 2, 3] | |
#=> [1, 2, 3] | |
iex(5)> IO.inspect l2 | |
[0, 2, 3] | |
#=> [0, 2, 3] | |
# IO.inspect and IO.puts should use to console.log() |
marcioj
commented
Jun 26, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment