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

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.

主站蜘蛛池模板: 清新县| 自治县| 富锦市| 陈巴尔虎旗| 牡丹江市| 通江县| 闸北区| 宝兴县| 斗六市| 修文县| 保亭| 辽宁省| 博爱县| 瓦房店市| 兴宁市| 平定县| 界首市| 孟州市| 常熟市| 新乡县| 通州区| 新巴尔虎右旗| 手游| 广西| 手机| 德保县| 准格尔旗| 岳普湖县| 河间市| 黄梅县| 田东县| 方城县| 饶阳县| 龙井市| 伊金霍洛旗| 延庆县| 融水| 社会| 安阳市| 繁峙县| 威远县|