Could anyone explain to me what are the differences between data/type constructors and functions? Haskell mix 开发者_开发百科them and give us a universal interface (all looks like functions, in partic
Is there an easy way to go from an Ocaml data type to a corresponding xml representation? Suppose that I have the following types:
This code for i=0 to 5 do print_string \"a\" done;; will output aaaaaa- : unit = () But how can I output just \"aaaaaa\" without outputting the value of for-e开发者_如何学Goxpression?You are not
I have defined two module types and two modules module type FOO = sig type e end module type BAR = sig type t end
I\'m having a problem while using OcaIDE in ocamlbuild mode. I\'m trying to compile my own JoCaml sources. According to the JoCaml manual (bottom of page), to use ocamlbuild with JoCaml, I just need t
The file test.ml contains only one line: let foo = <:expr< foo >> I then apply camlp4 to that file with this command line:
I am writing a program which parses scripts written in some made-up language and does some computations using that script. This language has a particular construct which is used to call external OCaml
I need to evaluate whether two formulas are equi开发者_运维技巧valent or not. Here, I use a simple definition of formula, which is a prefix formula.
I\'m getting crazy while trying to understand how to produce a binary in OCaml that doesn\'t need anything too specific (eg. having anything as OCaml build tools installed).
I have question regarding constructing a function like thi开发者_JS百科s. Here, I have two lists, both have the same length (say that the length is n, and the case that I want is a function which ful