Created
December 22, 2019 23:27
-
-
Save justinhj/49421388807274dd5cc9ec38ead18067 to your computer and use it in GitHub Desktop.
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
/*\ | |
{\o/} | |
/_\ | |
\*|*/ | |
///|\\\ | |
////|\\\\ | |
/////|\\\\\ | |
object MerryX | |
{def main(santa | |
: Array[String]){ | |
val message = List( | |
"year!", "the", "of", | |
"time","wonderful");val | |
ms2 = List("most", "the", | |
"It's"); val out = (message | |
++ ms2).foldLeft ( List.empty | |
[String] ) {_ ++ List( " " , _) | |
}; println(out.reverse.mkString); | |
/** | |
*** | |
*** | |
{{***/}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment