If I have a list of floats:
let float_list = [1.5,2.5,3.5]
I'm looking to extract a number from this list similar to:
List.nth float_list 2
However what is returned is type float * float and not 3.5. List.nth only seems to return integers from an integer list and I can't seem to find a function in https://caml.inria.fr/pub/docs/manual-ocaml/libref/List.html to return the nth element of any list other than an integer list.
Would anyone be able to help with this?