I have this hacked up ReasonML code embedding Javascript, and I can’t figure out what this error means:
Warning 20: this argument will not be used by the function.
Flymake is showing this warning for each occurrence of s4()
. What am I doing wrong? What is the correct way to write this code?
let s4 = [%raw
{|
function a() {return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1)}
|}
];
let toReturn =
string_of_int(s4())
++ string_of_int(s4())
++ "-"
++ string_of_int(s4())
++ "-"
++ string_of_int(s4())
++ "-"
++ string_of_int(s4())
++ "-"
++ string_of_int(s4())
++ string_of_int(s4())
++ string_of_int(s4());
toReturn;
};