I have a very basic OCaml program that reads two lines and adds them to a tuple. I expect that this tuple contains two strings in the order user inputs them (s1, s2) but strings placed in reversed order (s2, s1). Could someone explain this behavior or point me to the docs? Thanks.
let () = (read_line(), read_line()) |> (fun (s1, s2) -> Printf.printf "%s\n%s\n" s1 s2);;