Created
July 18, 2015 11:38
-
-
Save montague/9ecd1bdde921b8425f8c to your computer and use it in GitHub Desktop.
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(26)> [head | tail] = [1,2,3] | |
[1, 2, 3] | |
iex(27)> head | |
1 | |
iex(28)> tail | |
[2, 3] | |
iex(29)> [tail | head] | |
[[2, 3] | 1] | |
iex(30)> [head | tail] | |
[1, 2, 3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment