RosettaCodeData/Task/Array-length/Elixir/array-length.ex

5 lines
113 B
Elixir

iex(1)> length( ["apple", "orange"] ) # List
2
iex(2)> tuple_size( {"apple", "orange"} ) # Tuple
2