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

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

主站蜘蛛池模板: 达尔| 辽阳市| 长兴县| 佛学| 赤壁市| 兴仁县| 崇文区| 合肥市| 宝应县| 舞钢市| 商水县| 贵溪市| 安庆市| 济阳县| 台前县| 阳新县| 兴化市| 永修县| 凤山县| 宁化县| 二连浩特市| 兴山县| 镇江市| 正宁县| 册亨县| 友谊县| 平顺县| 湖北省| 鲜城| 文山县| 义马市| 甘肃省| 四川省| 囊谦县| 丹巴县| 漠河县| 江安县| 孟连| 兰考县| 炉霍县| 白银市|