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

ProtoFlux String Split node #1572

Open
jae1911 opened this issue Mar 31, 2024 · 1 comment
Open

ProtoFlux String Split node #1572

jae1911 opened this issue Mar 31, 2024 · 1 comment
Assignees
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet

Comments

@jae1911
Copy link

jae1911 commented Mar 31, 2024

Is your feature request related to a problem? Please describe.

When writing systems parsing data (for instance, from CSV), it can be a bit tedious to have parsing, taking a lot of nodes for something that could probably be combined in a single one.

Describe the solution you'd like

Add a String Split ProtoFlux node that would act like the Python .split by returning a collection of the split string.

For instance:

my_string = "Hello,World"
print(my_string.split(","))

Would print out:

['Hello', 'World']

This would remove some complexity in ProtoFlux systems, though would have some pre-requisites (see additional context).

Describe alternatives you've considered

Use the current method combining Substring and IndexOfString. Tho a bit more complex than a single node would be, it works.

Additional Context

Would require #572 to be implemented first.

Requesters

j4 | j4.lc (Discord)

@jae1911 jae1911 added the New Feature A new addition, whose complexity hasn't been evaluated yet label Mar 31, 2024
@Frooxius
Copy link
Member

Yeah this will very likely come after collections are added, it's a very common operation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet
Projects
None yet
Development

No branches or pull requests

3 participants