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

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.

主站蜘蛛池模板: 西丰县| 定兴县| 赞皇县| 湖州市| 左云县| 平顶山市| 七台河市| 井研县| 德兴市| 额尔古纳市| 万载县| 台东市| 文安县| 汶川县| 瓦房店市| 商丘市| 布尔津县| 莆田市| 新干县| 苍溪县| 江川县| 大埔区| 洮南市| 嘉禾县| 昭觉县| 林芝县| 游戏| 渝北区| 南和县| 临洮县| 丹凤县| 保亭| 五峰| 兴业县| 儋州市| 河池市| 上饶县| 陵水| 祁阳县| 梧州市| 怀安县|