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

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

主站蜘蛛池模板: 内乡县| 吴堡县| 南安市| 巴彦淖尔市| 贵南县| 内丘县| 靖州| 盐池县| 临桂县| 汝城县| 芦山县| 荆门市| 肇东市| 湾仔区| 娄烦县| 宁乡县| 万盛区| 隆林| 德庆县| 永修县| 来凤县| 准格尔旗| 遂昌县| 葫芦岛市| 大连市| 霸州市| 岚皋县| 全州县| 旅游| 太湖县| 营山县| 陇西县| 芮城县| 富锦市| 张家界市| 青神县| 云安县| 德州市| 特克斯县| 叙永县| 凌云县|