posted @ 2017-05-25 18:25
05 2017 档案
摘要: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
阅读全文
摘要: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
摘要:4.1 Objects Everywhere Pure Object Orientation: A pure object-oriented language is one in which every value is an object. If the language is based on
阅读全文
posted @ 2017-05-19 17:05
摘要:3.1 Class Hierarchies Object-oriented languages (including Scala) implement dynamic method dispatch. This means that the code invoked by a method call
阅读全文
posted @ 2017-05-18 10:53
摘要:课程地址: https://www.coursera.org/learn/progfun1/lecture/xuM1M/lecture-2-1-higher-order-functions 2.1 Higher-Order Functions Functional languages treat f
阅读全文
posted @ 2017-05-16 17:00
摘要:课程地址:https://www.coursera.org/learn/progfun1/home/welcome 1.1 Programming Paradigms In a restricted sense, a functional programming language is one wh
阅读全文
posted @ 2017-05-12 17:49