let shout value = Value.to_string value ^ "!"
end
Then you implement the behaviour per type:
module Int = struct
let to_string = string_of_int
end
...and so on.
let shout value = Value.to_string value ^ "!"
end
Then you implement the behaviour per type:
module Int = struct
let to_string = string_of_int
end
...and so on.
let foo { x; y } = bar ~x ~y ()
let foo { x; y } = bar ~x ~y ()