Created
November 7, 2013 16:22
-
-
Save crufter/7357370 to your computer and use it in GitHub Desktop.
Haskell stuff
This file contains hidden or 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
import Data.List | |
import Data.List.Split | |
isEven x = rem x 2 == 0 | |
isLong x = length x > 2 | |
ftext xs = filter isLong . concat . map tails $ splitOn " " xs | |
doubleChars cs = concat $ map (\c->[c,c]) cs | |
-- map (*2) [1..10] | |
contains wordList text = or $ map (flip isInfixOf text) wordList | |
-- let (passed, failed) = partition (>60) [49, 58, 76, 82, 88, 90] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment