Last active
February 15, 2016 12:57
-
-
Save 5t111111/57b2fff64094949bfcda to your computer and use it in GitHub Desktop.
ケブンリッジ関数 (単語だけに対応です…)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kebun=->(s){$><<s[0]+(s[1..-2].chars.shuffle*'')+(!s[1]?'':s[-1])} | |
# kebun.call('ケンブリッジ') => ケンブッリジ, ケリッブンジ, ケリンブッジ, ケリブンッジ, ケンッリブジ ... | |
# kebun.call('ケン') => ケン | |
# kebun.call('ケ') => ケ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment