17. implement LastChar<T>
Share
- accepted / - tried
Similar to FirstChar<T>, please implment LastChar<T>
to get the last character.
type A = LastChar<'BFE'> // 'E'type B = LastChar<'dev'> // 'v'type C = LastChar<''> // never
- accepted / - tried
Similar to FirstChar<T>, please implment LastChar<T>
to get the last character.
type A = LastChar<'BFE'> // 'E'type B = LastChar<'dev'> // 'v'type C = LastChar<''> // never