concept type Nat in category idris
appears as: type Nat

This is an excerpt from Manning's book Type-Driven Development with Idris.
Write an over_length function of type Nat -> List String -> Nat that returns the number of strings in the list longer than the given number of characters. You can test your answer at the REPL as follows: *ex_2> over_length 3 ["One", "Two", "Three", "Four"] 2 : Nat
Data types are defined in terms of their constructors, as you’ll see in detail in chapter 4. The constructors of a data type are the primitive ways of building that data type, so in the case of Nat, every value of type Nat must be either zero or the successor of another Nat. The number 3, for example, is written in primitive form as S (S (S Z)). That is, it’s the successor (S) of 2 (written as S (S Z)).