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

[ base ] Add lists' infix-by functions, complementary to existing ones #3056

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

buzden
Copy link
Contributor

@buzden buzden commented Aug 25, 2023

Description

In Data.List we have

  • prefixOfBy, isPrefixOfBy, isPrefixOf;
  • suffixOfBy, isSuffixOfBy, isSuffixOf;
  • but only isInfixOf,

which is a shame sometimes. I suggest adding those two lacking complementary functions.

Should this change go in the CHANGELOG?

  • If this is a fix, user-facing change, a compiler change, or a new paper
    implementation, I have updated CHANGELOG.md (and potentially also
    CONTRIBUTORS.md).

@gallais gallais merged commit a4ccb27 into idris-lang:main Aug 28, 2023
20 checks passed
@buzden buzden deleted the list-infix-by branch August 28, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants