2021年8月31日

scala高阶函数之option

摘要: option是scala中是否有值函数 package day3 object demo_option { def main(args: Array[String]): Unit = { val contrymap = Map[String, String]( "china" -> "beijing 阅读全文

posted @ 2021-08-31 15:26 孔扎根 阅读(89) 评论(0) 推荐(0) 编辑

scala高阶函数之枚举类

摘要: 枚举类: 不同于java, 有自己的定义规则 object demo_meiju { def main(args: Array[String]): Unit = { def crossrod(light:Tractlight.Value): Unit = { light match { case T 阅读全文

posted @ 2021-08-31 14:24 孔扎根 阅读(280) 评论(0) 推荐(0) 编辑

导航