2018年12月15日

scala List

摘要: 1. 列表List 1.1. 不可变List import scala.collection.immutable._ 列表的定义: head 返回列表第一个元素 tail 返回一个列表,包含除了第一元素之外的其他元素 isEmpty 在列表为空时返回true list常用的操作符: +: (elem 阅读全文

posted @ 2018-12-15 15:33 孤城夜寂雪 阅读(118) 评论(0) 推荐(0)

导航