This week's code snippet, Reverse String in Vimscript, is brought to you by Subete and the Sample Programs repo.
func! Reverse(str)
return join(reverse(split(a:str, '\zs')), '')
endfunc
func! Main(...)
echo Reverse(a:0 > 0 ? a:1 : '')
endfunc
Below you'll find an up-to-date list of articles by me on The Renegade Coder. For ease of browsing, emojis let you know the article category (i.e., blog: โ๏ธ, code: ๐ป, meta: ๐ญ, teach: ๐)
- ๐ป What Is Snake Case in Python?
- โ๏ธ The Name 100 Women Challenge
- โ๏ธ All But Dissertation: The Light at the End of the Tunnel
- ๐ป What Are Special Methods in Python?
- ๐ป What Is Iterable Unpacking in Python?
- ๐ป What Is an Iterable in Python?
- โ๏ธ Meritocracy: The Facade That Determines Who Deserves Success
- ๐ 6 Tips for New College and University Educators
- โ๏ธ Checking Up on Google Search in 2024: Itโs Worse Somehow
- โ๏ธ Google Threatens to Ruin Search as We Know It
Also, here are some fun links you can use to support my work.
This document was automatically rendered on 2024-07-26 using SnakeMD.