2017年5月25日

摘要: 6.1 Other Collections Operations on Vectors: Vectors are created analogously to lists: val nums = Vector(1, 2, 3, -88) val peoplr = Vector("Bob", "Jam 阅读全文

posted @ 2017-05-25 18:25 paulingzhou 阅读(208) 评论(0) 推荐(0) 编辑

摘要: 5.1 More Functions on Lists xs.length The number of elements of xs xs.last The List's last element, exception if xs is empty xs.init A list consisting 阅读全文

posted @ 2017-05-25 14:11 paulingzhou 阅读(247) 评论(0) 推荐(0) 编辑