4 ms·
The list comprehension syntax gets confusing for me to read especially with pattern matching.
by digitalzombie 11y ago
The list comprehension syntax gets confusing for me to read especially with pattern matching.
- seiji 11y agoHaskell: https://gist.github.com/gigamonkey/6249d85021bc8bf54eb4 https://gist.github.com/gigamonkey/6249d85021bc8bf54eb4 Erlang: https://gist.github.com/mattsta/b6749e566f5cfd75762a https://gist.github.com/mattsta/b6749e566f5cfd75762a List comprehensions make no sense to anybody at first. But after you work with and struggle against them for a few days/weeks, everything will click. You'll be a better developer for understand them more intuitively.
- EarthLaunch 11y agoI don't know about that last part. I spent years with Erlang until finally list comprehensions became natural, and I still don't feel like a better programmer!