Re:Swift and the Legacy of Functional Programming
by aninhumer on Monday November 21, 2016 @02:05PM
(#13008139)
No one would ever write the latter, because (\p -> isValid p) is equivalent to isValid.
However you're right that the function names would probably be a little longer in practice, and I've edited my example to reflect that. (But they're not convenience functions, they just have longer names due to Haskell's more limited namespacing)
However you're right that the function names would probably be a little longer in practice, and I've edited my example to reflect that. (But they're not convenience functions, they just have longer names due to Haskell's more limited namespacing)