Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.88 KB

File metadata and controls

12 lines (7 loc) · 1.88 KB

Length of String 2 hard #template-literal

by null @uid11

Take the Challenge    日本語

Implement a type LengthOfString<S> that calculates the length of the template string (as in 298 - Length of String):

type T0 = LengthOfString<"foo"> // 3

The type must support strings several hundred characters long (the usual recursive calculation of the string length is limited by the depth of recursive function calls in TS, that is, it supports strings up to about 45 characters long).


Back Share your Solutions Check out Solutions

Related Challenges

298・Length of String