Hi there !
I have written a small library that I want to publish without any external dependencies.
The only dependency left, is this:
var p = proxied[extra$1];
if (p !== undefined) {
return Caml_option.valFromOption(p);
}
I know that the “p” is not an option at this stage and the valFromOption just returns p.
How can I avoid the library dependency to Caml_option and simply return “p” (without altering the sources) ?
The ReScript code is:
switch Dict.get(observed, key) {
| Some(eyes) =>
if Set.delete(eyes, sym) {
if Set.size(eyes) == 0 {
ignore(%raw(`delete observed[key]`))
}
}
| _ => ()
}