diff options
Diffstat (limited to 'src/code/1/lists')
-rw-r--r-- | src/code/1/lists | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/code/1/lists b/src/code/1/lists new file mode 100644 index 0000000..836d30b --- /dev/null +++ b/src/code/1/lists @@ -0,0 +1,21 @@ +iex> [] +[] +iex> [1, 2, 3,] +[1, 2, 3] +iex> [1, :a, ['b']] +[1, :a, ['b']] +iex> [104, 101, 108, 108, 111] +'hello' +iex> 'hełło' +'hełło' +iex> 'こにちは、世界' +[12371, 12395, 12385, 12399, 12289, 19990, 30028] + +iex> hd([1, 2, 3,]) +1 +iex> tl([1, 2, 3]) +[2, 3] +iex> [1] ++ [2, 3] +[1, 2, 3] +iex> [1, 2, 3] -- [1] +[2, 3] |