As it cur开发者_运维知识库rently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely
I wrote an app in ocaml. It consist of several modules: Util (util.ml) Work1 (work1.ml) -- open Util Work2 (work2.ml) -- open Util, too
I\'m trying to create a type that has multiple type para开发者_运维问答meters.I know how to make a type with one parameter:
Let\'s assume for the moment that C++ is not a functional programming language.If you want to write a compiler using LLVM for the back-end, and you want to use a functional programming language and it
I\'ve been doing some OCaml programming lately to learn the language and to get more acquainted with functional programming.Recently, I\'ve started to think 开发者_C百科that I\'d like to be able to ex
How would I create a linked list to hold my data in OCaml? I\'m trying to make a singly linked list, however I\'m having trouble with the syntax. I just want to make a module to simply get the \'a fro
What\'s wrong with this code? I can\'t figure it out: let parent(rules : grammar) (symbol1 : string) (symbol2 : string) : (SymbolSet.t) =
I have a program that solves the weighted interval scheduling problem using dynamic programming (and believe it or not, it isn\'t for homework).I\'ve profiled it, and I seem to be spending most of my
I wrote a short bit of code to simply skip num_lines lines in an input file (printing the lines out for debugging purposes.Here\'s two things I tried that didn\'t work:
I wanted to have a tail-recursive version of List.map, so I wrote my own.Here it is: let rec list_map f l ?(accum=[])=