16. implement FirstChar<T>
Share
- accepted / - tried
Please implement FirstChar<T>
to get the first character of a string.
type A = FirstChar<'BFE'> // 'B'type B = FirstChar<'dev'> // 'd'type C = FirstChar<''> // never
- accepted / - tried
Please implement FirstChar<T>
to get the first character of a string.
type A = FirstChar<'BFE'> // 'B'type B = FirstChar<'dev'> // 'd'type C = FirstChar<''> // never