Could someone tell what is wrong with this code. I would expect the result to be [2]. Thanks -- David module IntSet = Set.Make(struct type t = int let...
From: "dvanhorn_at_uvm" <david@...> Subject: "ocaml_beginners"::[] set_map Date: Thu, 01 Jul 2004 17:13:22 -0000 ... The order of the arguments of fold...
Yamagata Yoriyuki
yoriyuki@...
Jul 1, 2004 7:45 pm
2318
Using List.map I can map a function to be applied to all elements of a list. Assuming I have a list of objects, is there something similar to send a method to...
Holger Schulz
schulz@...
Jul 2, 2004 8:27 am
2319
If you want to map over a list of object, assuming you know their type, why don't you make something like List.map (fun u -> u#method_to_be_applied (*with...
Hello, Would it be considered bad form to failwith a rather large, variable string? Rather than call exit directly inside some of my functions when it's...
Hello, Is it possible to unset an environment variable in ocaml? -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 //...
Hi there, I've played around with definition of an infix operator: # let ( +^ ) a b = a + b;; val ( +^ ) : int -> int -> int = <fun> # 4 +^ 8;; - : int = 12 #...
... The rules for basic OCaml infix ops are complicated, but the biggest one is that you can't use alphanumeric characters at all :-( However, it's easy to do...
... operators ... Why isn't it part of the language: the possibility to just redefine an operator or function as infix? ... infix ... Thanks a lot. Your...
... Why indeed. It seems like a strange omission, because it is part of ML, Haskell and Prolog. ... The camlp4 solution works fine for me in practice too....
From: Richard Jones <rich@...> Subject: Re: "ocaml_beginners"::[] infix question Date: Sun, 4 Jul 2004 15:31:19 +0100 ... It was once considered, but...
Yamagata Yoriyuki
yoriyuki@...
Jul 4, 2004 6:35 pm
2333
... redefine an ... One possible reason is that the fixity declarations of SML97 force type inference to be done after parsing. According to Bob Harper: In...
... I've always just defined it myself as let pi = acos (-. 1.). William D. Neumann "You've got Rita Marlowe in the palm of your hand." "Palm of my hand? You...
Hello I wonder if there is an existing package to handle graphs (I'm not sure of the exact english term : a set of item with a binary relation called...
Hi, all What is the difference between camlp4 and ocaml? When will we use camlp4 instead of ocaml? Thanks a lot! Andy __________________________________ Do you...
... Is this a university question? Camlp4 is a preprocessor for Ocaml. Send some more details of your precise problem if you want to know more. Rich. -- ...
So, what is the input for camlp4? It seems that in Ocaml, there are not header files like those in C/C++. Thanks. Andy ... __________________________________ ...
... Any appropriate source file can be an input for camlp4. You don't need a header file in C++ to use the C++ preprocessor, just a file that needs the...
Hi, all When I tried to use "list" command in ocaml debug, I was told "Not in a module". Actually I wrote some very simple code, and do not use modules. How...