Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
137 stars 2 forks source link

ProtoFlux String Split node #1572

Open jae1911 opened 6 months ago

jae1911 commented 6 months ago

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)

Frooxius commented 6 months ago

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