Syntax Lookup

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

__LOC_OF__(expression) returns a tuple consisting of (location, expression) corresponding to the location of the expression you pass as a parameter here.

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

ReScriptJS Output
let f = () => None
let (loc, f') = __LOC_OF__(f)

loc->Console.log
f'->Console.log