摘要: 1.List有个叫“:::”的方法实现叠加功能。你可以这么用:val oneTwo = List(1, 2)val threeFour = List(3, 4)val oneTwoThreeFour = oneTwo ::: threeFourprintln(oneTwo + " and " + threeFour + " were not mutated.")println("Thus, " + oneTwoThreeFour + " is a new List.")2.List最常用的操作符是发音为“cons” 阅读全文
posted @ 2014-04-04 11:30 Yrpen 阅读(115) 评论(0) 推荐(0) 编辑