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

Add split and split_once to bit_array module #803

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ackurat
Copy link

@ackurat ackurat commented Feb 12, 2025

Hello,
This PR solves issue #568 and also adds a split function. Both split and split_once functions as their counterparts in the the gleam/string module, and have feature parity across the targets.

There are two older PRs (#571, #629) which addresses this, but they seem to be outdated/abandoned.

The split function could take options to make it have feature parity with Erlang's binary:split/3, but I opted for a simpler version here. Let me know if you'd like me to add the options feature.

@ackurat ackurat marked this pull request as ready for review February 12, 2025 11:59
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

Successfully merging this pull request may close these issues.

1 participant