Types
Provide utilities for manipulating JS types.
symbol
REStype symbol
obj_val
REStype obj_val
undefined_val
REStype undefined_val
null_val
REStype null_val
function_val
REStype function_val
t
REStype rec t<'a> =
| Undefined: t<undefined_val>
| Null: t<null_val>
| Boolean: t<bool>
| Number: t<float>
| String: t<string>
| Function: t<function_val>
| Object: t<obj_val>
| Symbol: t<symbol>
test
RESlet test: ('a, t<'b>) => bool
tagged_t
REStype tagged_t =
| JSFalse
| JSTrue
| JSNull
| JSUndefined
| JSNumber(float)
| JSString(string)
| JSFunction(function_val)
| JSObject(obj_val)
| JSSymbol(symbol)
classify
RESlet classify: 'a => tagged_t