Hacker News new | past | comments | ask | show | jobs | submit login

> Challenge: How would you go about writing a function that reverses a string while leaving symbols encoded as sequences of code points intact? Can you do it from scratch? Is there a package available in your language that can do it for you? How did that package solve the problem?

So are there any good libraries that can deal with code points that are merged together into a single pictographic and reverse them "as expected"?




If you're using Python, check out grapheme: https://github.com/alvinlindstam/grapheme




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: