def s5n(s: String) = s"${s.head}${s.size-2}${s.last}" s5n("internationalization") → i18n s5n("localization") → l10n s5n("greenberg") → g7g
-
-
Replying to @greenberg
def n5s(s) s =~ /\d+/ open("/usr/share/dict/words").grep(/^#{s[0]}.{#{$&}}#{s[-1]}$/) {|o| puts o } end Adapted from
@matasar's gist.2 replies 0 retweets 2 likes
Replying to @greenberg @matasar
object S5NInjection extends Injection[String,String] {...}
9:03 AM - 17 May 2016
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.