amoffat / snake

Full Python Scripting in Vim
1.41k stars 56 forks source link

Use Pythonic string reversal in example in README #4

Closed wbolster closed 9 years ago

amoffat commented 9 years ago

learned something new :+1:

wbolster commented 9 years ago

awesome.

(btw, there's also reversed() (built-in function) which works on more than just lists, but for strings the s[::-1] approach is better.)