Andrea Simone Costa 4d254daa3a chore: update index
2021-08-21 12:09:08 +00:00
..
2021-08-21 12:09:08 +00:00

Split hard #string #split #array #tuple

by Andrea Simone Costa @jfet97

Take the Challenge

The well known split() method splits a string into an array of substrings by looking for a separator, and returns the new array. The goal of this challenge is to split a string, by using a separator, but in the type system!

For example:

type result = Split<'Hi! How are you?', ' '>  // should be ['Hi!', 'How', 'are', 'you?']

Back Share your Solutions Check out Solutions