stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

Add split and split_once to bit_array module

Open ackurat opened this issue 9 months ago • 0 comments
trafficstars

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 avatar Feb 12 '25 11:02 ackurat