My utop
RPEL for some reason doesn’t recognize List
has a fold_left2
function. Any idea how to fix that?
1 Like
I figured out why. The reason has to do with the Core
vs Stdlib
libraries. My utop
default setting is to use the Core
, which doesn’t have the List.fold_left2
function, which however exists in Stdlib
. So to see fold_left2
, I can:
utop # open Stdlib;;
utop # List.fold_left2;;
- : ('a -> 'b -> 'c -> 'a) -> 'a -> 'b list -> 'c list -> 'a = <fun>
1 Like