ABC words: Difference between revisions

m
(Updated Haskell version)
Line 1,582:
 
=={{header|Haskell}}==
<lang haskell>import Data.BoolList (boolelemIndex)
import Data.Maybe (isJust)
 
Line 1,592:
residue 'a' "bc" s
>>= residue 'b' "c"
>>= (boolelemIndex Nothing . Just) <*> ('c' `elem`)
 
residue :: Char -> String -> String -> Maybe String
9,659

edits