[erlang-questions] concentate solution well ??
Sun Feb 1 11:14:49 CET 2015
I have this exercise of the Erlang programming book.
Write a function that, given a list of lists, will concatenate them.
concatenate([[1,2,3], , [4, five]]) ⇒ [1,2,3,4,five].
Hint: you will have to use a helpfunction and concatenate the lists in
But I do not need to use a helper function because it can be solved like
concatenate( [List1 , List2 , List3] ) ->
List1 ++ List2 ++ List3.
Or is this not the solution that is meant on this exercise ?
Do I need to solve it by using pattern matching ?
More information about the erlang-questions