add function
boolean function
id function
records
string records
function annotations
type variables
GitHub Source
Loading...
1
2
3
4
5
6
const
addOne = x => x +
1
;
// A simple function which infers the type of x as
Number
const
result = addOne(
41
);
// Try changing the argument type