Created
March 17, 2013 00:31
-
-
Save rizumita/5178986 to your computer and use it in GitHub Desktop.
NSEG 第37回勉強会で作成したコード
This file contains 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
println(args(0).toList.reverse.zipWithIndex.map{case(x,i)=>val k=" 十百千"(i) | |
val n=" 一二三四五六七八九"(x.toString.toInt) | |
n match{case' '=>""case'一'if k!=' '=>k | |
case _=>n+k.toString}}.reverse.mkString.trim) |
xuwei-k
commented
Mar 17, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment