2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
10
Task/Arrays/Elixir/arrays-7.elixir
Normal file
10
Task/Arrays/Elixir/arrays-7.elixir
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
iex(1)> fruit = [:apple, :banana, :cherry]
|
||||
[:apple, :banana, :cherry]
|
||||
iex(2)> hd(fruit)
|
||||
:apple
|
||||
iex(3)> tl(fruit)
|
||||
[:banana, :cherry]
|
||||
iex(4)> hd(fruit) == :apple
|
||||
true
|
||||
iex(5)> tl(fruit) == [:banana, :cherry]
|
||||
true
|
||||
Loading…
Add table
Add a link
Reference in a new issue