-
-
Save pwpearson/124241489adb2f03f550ee1c6e1ecc5a to your computer and use it in GitHub Desktop.
Scala one-liners
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
val factorialOfFive = {1 to 5}.toList.reduceLeft(_*_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment