- The Scala Programming Language
- 開発元はLightbend 社 と EPFL(Odersky先生がいるスイスの大学)
- 2019/05 現在、最新バージョンは 2.12
- Dottyと呼ばれる新しいScalaコンパイラが開発されている
- Scala3
- 2019/05 現在0.15.0-RC1
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
object FizzBuzz extends App { | |
val result = (1 to 100).map { | |
case x if x % 3 == 0 && x % 5 == 0 => "FizzBuzz" | |
case x if x % 3 == 0 => "Fizz" | |
case x if x % 5 == 0 => "Buzz" | |
case x => x | |
} | |
result.foreach(println) |
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
plugins { | |
id 'org.springframework.boot' version '2.1.9.RELEASE' | |
id 'io.spring.dependency-management' version '1.0.8.RELEASE' | |
id 'java' | |
} | |
group = 'com.example' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = '11' |
OlderNewer