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

String splitting via division. #167

Merged
merged 3 commits into from
Mar 13, 2024
Merged

String splitting via division. #167

merged 3 commits into from
Mar 13, 2024

Conversation

01mf02
Copy link
Owner

@01mf02 01mf02 commented Mar 13, 2024

This PR makes it possible to split a string s by sep via s / sep.
Previously, the same could be achieved by s | split(sep).

Furthermore, the behaviour of split now matches jq, which returns [] when s is "". Before, split would return [""].

@01mf02 01mf02 merged commit 3294317 into main Mar 13, 2024
2 checks passed
@01mf02 01mf02 deleted the div-string branch March 13, 2024 11:39
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