You are viewing a single comment's thread. Return to all comments →
you need to trim string before parsing it
let read_int_value () = read_line () |> String.trim |> int_of_string
Seems like cookies are disabled on this browser, please enable them to open this website
Functions or Not?
You are viewing a single comment's thread. Return to all comments →
you need to trim string before parsing it
let read_int_value () = read_line () |> String.trim |> int_of_string