Jump to content

ABC words: Difference between revisions

9 bytes removed ,  3 years ago
m
(→‎{{header|Python}}: Added a functionally composed variant.)
Line 525:
| c == x = Just xs
| otherwise = go xs
 
 
--------------------------- TEST -------------------------
main :: IO ()
main =
readFile "unixdict.txt" >>= \s ->
>>= mapM_ print $. zip [1 ..] $. filter isABC (lines. s)lines</lang>
{{Out}}
<pre>(1,"aback")
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.