Last active
August 29, 2015 14:16
-
-
Save kamiyaowl/16897f11e6c9da1a5638 to your computer and use it in GitHub Desktop.
#俳句プログラミング http://pronama.azurewebsites.net/2015/02/26/haiku-programming-contest-2015/ ideoneで実行: http://ideone.com/Qyb4aU
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(((s:String) => s.drop(5 + 7).take(5).zip(s.drop(5).take(7)).zip(s.take(5)).map{case ((a,b),c) => s"$a $b $c"}.++(s.drop(5 + 5).take(2).map{x => s" $x"}).mkString("\r\n"))("なかぬならなかせてみようホトトギス")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment