Is there a way to utilize List.find_opt? Similar to what is defined here:
https://caml.inria.fr/pub/docs/manual-ocaml/libref/List.html
Additional methods in Standard List, List.find_opt?
lyleg
#1
yawaramin
#2
You can use the equivalent https://bucklescript.github.io/bucklescript/api/Belt.List.html#VALgetBy
For now, List.find_opt
is not available because BuckleScript is based on a slightly older version of OCaml, see ✅ What's the progress on upgrading BuckleScript to a new version of OCaml?