Syntax Lookup

Enter some language construct you want to know more about.
This is the __LINE_OF__ special value.

__LINE_OF__(expression) returns a tuple consisting of (line, expression), where line is the line number at which the expression you pass as a parameter here appears in the file.

Note: expression refers to any expression, it does not need to be a function.

ReScriptJS Output
let f = () => None
let (line, f') = __LINE_OF__(f)

line->Console.log
f'->Console.log