Edit:Disregard this question!See comments below. I want an OCaml expression which is passed a file (as an \"in_channel\"), then reads the file line by line, doing some processing, to the end, then re
i was not able to print an a value (float) to a file with the OCaml lenguage. How can i do? If you know how, can you show me a littl开发者_StackOverflow社区e example?
I have two module types: module type ORDERED = sig type t val eq: t * t -> bool val lt: t * t -> bool
Does anyone know how does the \"remove\" function from OCaml开发者_如何学编程\'s PriorityQueue library look like?
I know this may seem very basic but basically, I want to say in pattern matching match value with Null-> failwi开发者_开发问答th \"Empty\"
I currently have two separate programs: (1) a GTK GUI; (2) a Glut application with openGL 3D graphics. However, I\'d like to have the openGL part as some widget embedded in the GUI I have.
A primitive way to have two threads share a state with type int ref in OCaml is: let add i x = x := !x + i;
Is there anyway to specify the path to the annot files when using tuareg-mode in emacs? I am trying to find out the type for my functions and the mode complains with
I\'m starting a new project and don\'t know which language to use. My \'must have\' requirements are: Be able to run on Windows/LinuxMacOs natively (native executable) – user should be able to jus
Question says it all.I have a data struc开发者_如何学编程ture I can\'t Marshal because of a weak hashtable .. wondering if I can get rid of it :)A weak array is an array of weak pointers. A weak point