RosettaCodeData/Task/Array-length/Elixir/array-length.elixir
2023-07-01 13:44:08 -04:00

4 lines
113 B
Text

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