Additional methods in Standard List, List.find_opt?


#1

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


#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?


#3

Thanks! I’ll give it a shot.