I am writing an OCaml library that has some initialization code that needs to be run only once during the lifetime of the program using the library (and store some state that will persist for the life
I have found several libraries for XML Parser in OCaml, such as PXP or XML-Light. Anyone knows such a thing that can be used easily in Windows? I found that in XML-Light, they have several .ml and .ml
I was trying to implement the state monad in OCaml (as an exercise). My implementation looks like this:
I am a bit new to OCaml. I want to implement product construction algorithm for automata in OCaml. I am confused how开发者_如何学运维 to represent automata in OCaml. Can someone help me?A clean repres
I want to take composition of twoMealy machines and two finite state transducers. How to represent Me开发者_开发百科aly machine/transducer in ocaml?What\'s the problem with Nicollet\'s answer to your
I have an unsorted list of rectangles (described as pair of lower left and upper right coordinates). I am looking for an efficient algorithm to compress this list by replacing neighboring or overlappi
I want to go through an array and return a list of ints (the value of ind开发者_C百科exes) when a value in the array matches true.
I\'m trying to follow Appel\'s \"Modern Compiler Implementation in ML\" and am writing the lexer using Ocamllex.
Background: I\'m using Emacs 23.3, OCaml 3.12.0 and tuareg 1.45.7. I\'m looking at the Hickey OCaml book, and trying to run the examples on pg. 157 of the book, 167 of the .pdf.The problem arises wi
In my program in OCaml, I need to randomly select a string from a huge set of strings. I\'ve tried two different ways of doing this so far, each with little success. I first stored all of the strings