Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
k⁰øl:[`shm`p|_[«88«p|_
Try it Online!Try it Online!
Port of Jelly.
k⁰øl:[`shm`p|_[«88«p|_ k⁰øl # Strip leading consonants :[ # If there's anything left: `shm`p«88«p # Prepend "shm" |_ # Else, pop, returning the implicit input
k⁰øl:[`shm`p|_
Try it Online!
k⁰øl:[`shm`p|_ k⁰øl # Strip leading consonants :[ # If there's anything left: `shm`p # Prepend "shm" |_ # Else, pop, returning the implicit input
k⁰øl:[«88«p|_
k⁰øl:[«88«p|_ k⁰øl # Strip leading consonants :[ # If there's anything left: «88«p # Prepend "shm" |_ # Else, pop, returning the implicit input