I\'m trying to set up a box to compile my project on windows. This is windows 7 32bit, with mingw, gcc, and other libraries installed through the cygwin setup application. flexdll and OCaml were insta
At the ocaml toplevel (version 3.11.2), this simple expression is giving me an error: # let a = [] in if null a then 0 else 1;;
I have seen somewhere the description of C-c C-r is \"evaluate the whole selected region\" or tuareg-eval-region. But when I try it under Emacs, it seems that after setting a region, and placing the c
In C++, recursive templates and constant values as temp开发者_开发问答late parameters allows to do interesting examples of code generation and compile-time execution, such as the factorial.
I would like to create a function in OCaml that returns a map of how often each character occurs in a file. For example, consider a file containing this:
I\'ve done some searching around and apparently there used 开发者_高级运维to be a Bignum module in the standard library according to thisBut at this point I don\'t see anything in the standard library
Is there a way to declare a function before defining it in OCaml?I\'m using an OCaml interpreter. I have two functions:
I\'m new to Ocaml and for a homework assignment I have to write a function filter_reachable that takes a grammar and returns a reduced grammar with the unreachable rules removed. The only modules I\'m
I know OCaml has List.a开发者_开发技巧ppend, but does it have an operator like Haskell\'s ++?For lists:
Is it possible to 开发者_StackOverflowuse OCaml with .NET code? I would like to invoke it like C++. Or maybe there a bridge for it.Have you considered CSML?You would need to write a bit in its interf