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

Type is the core

In the early days (great, if even in the present) you may have come across this:

f : R -> N

This is the mathematical representation of a function. This is how we denote any function f's domain and co-domains. In this case a function, f maps values from a set of real numbers to a set of natural numbers. With this deep abstraction level, you can think of Scala's rich type system. Some of the numerous types available are parameterized, structural, compound, existential, path-dependent, higher-kinded, and yes, we are discussing abstract types. An explanation of all these is beyond the scope of this book. But if you're curious, you may refer to Scala documentation at https://www.scala-lang.org/documentation/. Knowledge of these helps a lot when designing frameworks or libraries.

主站蜘蛛池模板: 北票市| 泗洪县| 富源县| 长泰县| 宣城市| 潮安县| 洪雅县| 贡觉县| 泊头市| 改则县| 纳雍县| 太仓市| 青田县| 凌源市| 西乌珠穆沁旗| 沂南县| 乐平市| 水富县| 哈巴河县| 望江县| 府谷县| 永清县| 东平县| 越西县| 华安县| 刚察县| 保靖县| 壤塘县| 鹤岗市| 彩票| 兴宁市| 萨嘎县| 双流县| 桦甸市| 永寿县| 奉贤区| 绵竹市| 台东县| 临颍县| 杭锦后旗| 平定县|