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 a replace operation #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add a replace operation #61

wants to merge 1 commit into from

Conversation

angeloskath
Copy link
Member

Like the tests, it enables replacing array subsequences with other array subsequences. The resulting array is flattened regardless of the original number of dimensions. Although any type is supported, only int8 arrays are exposed for string replacement.

The subsequence search code is not optimal but it is pretty fast so we could optimize if it becomes a bottleneck.

@angeloskath angeloskath requested a review from andresy April 16, 2024 08:32
@angeloskath angeloskath mentioned this pull request Apr 18, 2024
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