Open phadej opened 11 years ago
Would be nice to have eg.
var sortByMetric = typify("sortByMetric :: (* -> number) -> array * -> array *", function (metric, arr) { // sort... });
This can be done by typifying function parameters with (* -> number) before applying the function.
(* -> number)
This will need change to grammar, checkableType can then contain functionTypes.
Check
Would be nice to have eg.
This can be done by typifying function parameters with
(* -> number)
before applying the function.This will need change to grammar, checkableType can then contain functionTypes.