Typescript: this is just awesome. Substr is not the same as substring
In TypeScript (and JavaScript), both substr and substring are methods used to extract parts of a string, but they behave differently. This probably does not beat standard C++ class mt19937, […]


![Are Python strings UTF-8? What is the complexity of s[n]?](https://ikriv.com/blog/wp-content/uploads/2025/03/string_encoding_comparison.png)