mirror of
https://github.com/type-challenges/type-challenges.git
synced 2026-01-25 14:47:17 +00:00
Split

by Andrea Simone Costa @jfet97
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?']