Syntax Lookup

Enter some language construct you want to know more about.
This is the identity extension point.

%identity is used with external to do an unsafe conversion of a value from one type to another type.

ReScriptJS Output
external convertToFloat: int => float = "%identity"
let age = 10
let gpa = 2.1 +. convertToFloat(age)

References