ocaml
Compiling an OCaml program on Windows w/ ocamlbuild
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[详细]
2023-04-12 10:19 分类:问答ocaml null keyword: once but no more?
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;;[详细]
2023-04-11 19:42 分类:问答C-c C-r for Ocaml toplevel and setting a region under Emacs
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[详细]
2023-04-11 19:26 分类:问答Is it possible to do compile-time execution in OCaml, similar to C++ template metaprogramming?
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.[详细]
2023-04-11 07:07 分类:问答How to build a map of the frequency with which characters occur in a file in OCaml?
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:[详细]
2023-04-11 07:02 分类:问答Is there a Bignum module for Ocaml?
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[详细]
2023-04-11 01:53 分类:问答OCaml: Declaring a function before defining it
Is there a way to declare a function before defining it in OCaml?I\'m using an OCaml interpreter. I have two functions:[详细]
2023-04-10 08:26 分类:问答Remove unreachable rules from a grammar in OCaml
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[详细]
2023-04-10 07:58 分类:问答Does OCaml have syntax like Haskell's ++?
I know OCaml has List.a开发者_开发技巧ppend, but does it have an operator like Haskell\'s ++?For lists:[详细]
2023-04-10 07:08 分类:问答Is it possible to invoke OCaml from .NET?
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[详细]
2023-04-09 20:33 分类:问答