aboutsummaryrefslogtreecommitdiff
path: root/examples/scalafmt-example/src/Main.scala
blob: 595cedefee16a88ad3f33143afeff9017c5120c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import scala.concurrent.{Await, Future}
import scala.concurrent.duration._

object Main extends App {
  println("fooo")
  val futureRes = Await.result(Future.successful(1), 5.seconds)
  List(1, 2, 4, 5, 6) match {
    case h :: _ => println("not empty list")
    case Nil    => println("empty list")
  }

  List(1 -> 2, 2 -> 3, 3 -> 4) match {
    case (1, 2) :: _   => 90 -> 1
    case (22, 44) :: _ => 1  -> 150
  }
}