i’ve read the book for a whole night, typing the example codes, trying hard to follow and understand what i’m doing. It’s very hard to follow for me, because of the whole recursiveness. Maybe programming for years in “c-syntax-languages” makes learning erlang so hard for me (or is it not just me who thinks it’s really not easy getting used to erlang?).
So far, so good. After thinking about the examples for a while i understood them. But then came quicksort. From nothing there’s now list comprehension with comata in the generator. What does that mean? How do i read sort([X || X < - T, X < Pivot])? What exactly does “++ [Pivot] ++” mean? The little sentence that ++ is the infix append operator didn’t help me out well. What happens here?
I hope someone could help me with understanding this, because i feel really stupid at the moment. I want to understand erlang because of the cool things you can do with it, but i’m kind of frustrated in such an early part of learning the language.