Created
September 20, 2019 20:45
-
-
Save mem-memov/ec9f94c0e475f9d03713cc6b81a85763 to your computer and use it in GitHub Desktop.
h fltr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let fltr = f :: (a -> Bool) -> [a] -> [a] where f _ [] = []; f p (x:xs) = if (p x) then x:(f p xs) else f p xs in fltr (<5) [2,44,1,32] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment