官术网_书友最值得收藏!

Polymorphism and higher order functions

Until now, we've played with functions that operate on only one type of data (monomorphic functions). Now, we will finally apply our type system knowledge to build functions that work for multiple types. Functions that take type parameters are called polymorphic functions similar to polymorphic methods implemented in an object-oriented hierarchy of classes (subtype polymorphism). For functions in Scala, it is called parametric polymorphism

主站蜘蛛池模板: 盱眙县| 潞城市| 渝中区| 贺州市| 鹤山市| 新巴尔虎右旗| 芜湖县| 鸡泽县| 毕节市| 洪泽县| 洛川县| 万安县| 时尚| 桂林市| 武川县| 邵阳县| 娱乐| 娱乐| 胶州市| 荔波县| 磐石市| 荥阳市| 延安市| 台湾省| 徐水县| 巴彦县| 丹阳市| 荣昌县| 麦盖提县| 高阳县| 门源| 五家渠市| 景宁| 云南省| 永兴县| 慈利县| 项城市| 象山县| 泾源县| 祁东县| 宿迁市|