September 2018
Intermediate to advanced
398 pages
9h 43m
English
A function takes one or many values as parameters and returns another value. The arity of a function is the number of parameters it takes. For instance:
A type constructor is a type that accepts parameters. It is called type constructor, because it constructs a concrete type when we pass a concrete type to it. For instance, Option[A] is a type constructor. When we pass a concrete type Int to it, we obtain a concrete type Option[Int].
As type constructors can accept 0 to n arguments, the concept or arity also applies here:
Read now
Unlock full access