You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1394 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
I'd expect the expressions
List.iter (Printf.printf "%d %d\n" e) l'
and
List.iter (fun i -> Printf.printf "%d %d\n" e i) l'
to both print e paired with all elements of l', but I get this instead:
Original bug ID: 1394
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
I'd expect the expressions
and
List.iter (fun i -> Printf.printf "%d %d\n" e i) l'
to both print e paired with all elements of l', but I get this instead:
List.iter (Printf.printf "%d %d\n" 1) [2; 3; 4];;
1 2
3
4
List.iter (fun i -> Printf.printf "%d %d\n" 1 i) [2; 3; 4];;
1 2
1 3
1 4
This doesn't feel right.
Yours, Florian Hars.
The text was updated successfully, but these errors were encountered: