Comment Comment by jletts map(lambda x:x^2, filter(lambda x:x%6==0, map(lambda x: x*2, getNumbers())))Would probably be a more pythonic way to do that, avoiding list comprehensions. Easier to read with added lines and indentation.But tbf I do appreciate the ability to chain operations in JS without subclassing objects like list. parent jletts 6 years ago
Would probably be a more pythonic way to do that, avoiding list comprehensions. Easier to read with added lines and indentation.
But tbf I do appreciate the ability to chain operations in JS without subclassing objects like list.