Your Turn
- Exercise: Functions-1
Go into iex. Create and run the functions that do the following:
-
list_concat.([:a, :b], [:c, :d]) #=> [:a, :b, :c, :d]
-
sum.(1, 2, 3) #=> 6
-
pair_tuple_to_list.( { 1234, 5678 } ) #=> [ 1234, 5678 ]
-
Get Programming Elixir now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.