The obvious place to look for this is in ListLabels
. But for whatever reason the parameters of ListLabels.nth
aren't labelled!
You can use flip
:
let flip f x y = f y x
... |> flip List.nth 1 |> ...
flip is defined in OCaml Batteries Included as BatPervasives.flip
(and also in Core).