Which of the following are you most likely to write? r = zip xs $ map sqrt xs or r = [(x, sqrt x) | x <- xs]
This question is related to this Function Composition VS Function Application which answered by antal s-z.
I\'ve been playing around with Haskell a fair bit, including practising writing functions in point-free form. Here is an example function:
I have this code that I want to make point-free; (\\k t -> chr $ a + flip mod 26 (or开发者_C百科d k + ord t -2*a))