3 ms·
Perhaps you're right. On the other hand, list comprehensions are a core feature of Haskell, which does not have something akin to a "for loop," so it's somethin
by SomeHacker44 8y ago
Perhaps you're right. On the other hand, list comprehensions are a core feature of Haskell, which does not have something akin to a "for loop," so it's something a novice would be familiar with as part of learning the core of the language, just as a C++ novice would learn about "for loops."
So, I would argue the cognitive load is similar, and both lay everything out right in front of your eyes. Although, Haskell will do it with less syntax (alternatively, read that as "with more syntactic sugar").