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

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.

主站蜘蛛池模板: 卢湾区| 岳池县| 山丹县| 尼勒克县| 嫩江县| 横山县| 含山县| 简阳市| 永州市| 临高县| 抚宁县| 拉孜县| 邳州市| 年辖:市辖区| 自贡市| 太保市| 湖口县| 洛阳市| 新竹县| 永吉县| 凤凰县| 岐山县| 灵台县| 边坝县| 合作市| 平武县| 星子县| 二连浩特市| 山阴县| 仪征市| 邯郸市| 涟源市| 翼城县| 东乡族自治县| 江北区| 清流县| 西盟| 乐陵市| 肥西县| 天峻县| 广西|