RosettaCodeData/Task/Array-length/Elixir/array-length.ex
2024-10-16 18:07:41 -07:00

4 lines
113 B
Elixir

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