haskell-programming icon indicating copy to clipboard operation
haskell-programming copied to clipboard

Error in Chapter11 AsPatterns isSubsequenceOf impl

Open workflow opened this issue 5 years ago • 1 comments

Hey there and thanks a bunch for sharing your solutions :)

I noticed that here your implementation of isSubsequenceOf, while geniously simple, fails the following test:

isSubsequenceOf "blah" "blawhoot" --> supposed to be True

I do have a solution that works, but it's so clumsy I don't want to share it ;) and I also couldn't find a good way yet to make use of as-patterns here.

workflow avatar Feb 16 '20 07:02 workflow

Update: There's one that works here: https://github.com/abevoelker/haskellbook-solutions/blob/master/ch11/exercises.hs

workflow avatar Feb 16 '20 08:02 workflow