[Caml-list] Cartesian product

2009-07-30 Thread Ligia Nistor
Hi, Is there an already implemented way of doing the Cartesian product of 2 sets in OCaml? My sets are of type Set.Make(Types), where Types is a module I have defined. Thanks, Ligia ___ Caml-list mailing list. Subscription management:

Re: [Caml-list] Cartesian product

2009-07-30 Thread Ligia Nistor
at 9:22 PM, Brian Hurt bh...@spnz.org wrote: On Thu, 30 Jul 2009, Ligia Nistor wrote: Hi, Is there an already implemented way of doing the Cartesian product of 2 sets in OCaml? My sets are of type Set.Make(Types), where Types is a module I have defined. The biggest problem

[Caml-list] ocamlgraph

2009-06-25 Thread Ligia Nistor
Hi, I am trying to use ocamlgraph, but I am getting the error Unbound module Graph. I have the file demo.ml(from the site http://ocamlgraph.lri.fr/) which contains the line open Graph. I write in the interpreter #load ocamlgraph/graph.cmo and it finds it. But then when I write #use demo.ml, I

[Caml-list] multiple %start symbols in parser

2009-06-23 Thread Ligia Nistor
Hi, I am writing a small parser in ocaml, using ocamlyacc. I need to define 2 start symbols in my file parser.mly, but I don't know how to use them. The name of the 2 start symbols are mainand main2. I know how to use one start symbol, as here(taken form calc.ml): let _ = try