SCALA August 20, 2018

Scala基础

Words count 5.6k Reading time 5 mins.

三种变量修饰符

val 定义immutable variable 常量

var 定义 mutable variable 变量

lazy val 惰性求值

scala> lazy val f= 1...
Read article
0%