[Haskell-beginners] foldr point free notation

Alexander Chen alexander at chenjia.nl
Wed Jun 10 14:49:05 UTC 2020


hi,

--any function foldr
myAny'' :: (a-> Bool) -> [a] -> Bool
myAny'' f = foldr (\a b -> f a || b) False

this is the foldr notions. How would i make this point free?

best,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20200610/ae48ec95/attachment.html>


More information about the Beginners mailing list