3 ms·
> "Hello, World!".splitWithDelimiters > ("\\pP\\s\*", -1) > // ["Hello", ", ", "World", "!", ""] > Meh My brain just melted.
by baq 3y ago
> "Hello, World!".splitWithDelimiters
> ("\\pP\\s\*", -1)
> // ["Hello", ", ", "World", "!", ""]
> Meh
My brain just melted.
- hinkley 3y agoI'd have a lot of uses for that. But also worry about it enabling more stringly-typed code.