What is the fastest way to get the position of an element in a list of element in OCaml?I know how to get the "nth" position of an element in a list but I would like to know how to get the position of this element if I already know the value.
↧
What is the fastest way to get the position of an element in a list of element in OCaml?I know how to get the "nth" position of an element in a list but I would like to know how to get the position of this element if I already know the value.