i am working on the exercise on chapter 3 and I am to the one where
one is supposed to flatten a list with nested elements.
It seems to me that I must identify if the head element that I am
handling at that moment is a list or not. I know that there is a
predicate, is_list/1, that will do this for me.
Am I suppose to use the predicate, or is there a pattern matching that
can tease out if the current H is a list or not?
Thanks for the good exercises, by the way. It actually makes one
really learn the language.
Thanks in advance for future answers,
Hugo
Andrey
Sami