Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Chapter11 AsPatterns isSubsequenceOf impl #8

Open
workflow opened this issue Feb 16, 2020 · 1 comment
Open

Error in Chapter11 AsPatterns isSubsequenceOf impl #8

workflow opened this issue Feb 16, 2020 · 1 comment

Comments

@workflow
Copy link

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
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant