Skip to content

Instantly share code, notes, and snippets.

@koron
Last active October 15, 2016 13:58
Show Gist options
  • Save koron/a594a745cd07c1ac1633b5e0964ea248 to your computer and use it in GitHub Desktop.
Save koron/a594a745cd07c1ac1633b5e0964ea248 to your computer and use it in GitHub Desktop.
let s='中華料理画像うpよろしく'|echom s|let a=split(s,'\zs')|let t=repeat('@',len(a)-2)|for b in map(a[1:-2],'v:val.t.a[-2-v:key]')|echom b|endfo|echom join(reverse(a),'')
@koron
Copy link
Author

koron commented Oct 15, 2016

もちょっと削れた

@koron
Copy link
Author

koron commented Oct 15, 2016

s に対して flexible にして、なおかつ 1 文字削った。

そろそろ飽きた。

@koron
Copy link
Author

koron commented Oct 15, 2016

バグってたのを直した

@koron
Copy link
Author

koron commented Oct 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment