Я определил тип, подобный следующему:
type t_player = {
color : int;
coords_x : int ref;
coords_y : int ref
}
И теперь я хотел бы создать функцию, которая может быть такой:
let create_player
(name, color, coords_x, coords_y :
string * int * int ref * int ref) : t_player =
let name : t_player = {
color = int;
coords_x = ref 20;
coords_y = ref 20
};;
Возможно ли это?