5 ms·
As a beginner I definitely thought list comprehensions were easier than apply/filter style of operations. They amount to the same, but the explicit loop was mu
by wodenokoto 3y ago
As a beginner I definitely thought list comprehensions were easier than apply/filter style of operations.
They amount to the same, but the explicit loop was much easier for me to understand (and I’m still not sure if one applies a function to a value or a value to a function, so I never remember if the function or the values go first in an apply filter call)