Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2315 - 2344 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
2315
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...
dvanhorn_at_uvm
Offline Send Email
Jul 1, 2004
5:34 pm
2316
... Dumb question. Sorry for the noise. I had the order of parameters to fold switched up. David...
dvanhorn_at_uvm
Offline Send Email
Jul 1, 2004
5:45 pm
2317
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@...
Send Email
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@...
Send Email
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...
TBraibant
wisthler_thrawn
Offline Send Email
Jul 2, 2004
8:32 am
2320
... That could do it. Thanks hs...
Holger Schulz
schulz@...
Send Email
Jul 2, 2004
9:38 am
2321
Yes that works perfectly fine. I used this pattern lots of times. Sebastian...
promiller
Offline Send Email
Jul 2, 2004
3:55 pm
2322
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...
Jesse Guardiani
Trevarthan
Offline Send Email
Jul 2, 2004
9:05 pm
2323
Hello, Is it possible to unset an environment variable in ocaml? -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 //...
Jesse Guardiani
Trevarthan
Offline Send Email
Jul 2, 2004
9:31 pm
2324
... Hi, Setting a variable to "" will remove it. putenv "DISPLAY" "";;...
Karl Zilles
kzilles
Online Now Send Email
Jul 2, 2004
9:50 pm
2325
... No it doesn't: # Unix.putenv "bob" "foo";; - : unit = () # Unix.getenv "bob";; - : string = "foo" # Unix.putenv "bob" "";; - : unit = () # Unix.getenv...
Jesse Guardiani
Trevarthan
Offline Send Email
Jul 2, 2004
10:25 pm
2326
... Doh. :( I thought I had tested that. Lo siento....
Karl Zilles
kzilles
Online Now Send Email
Jul 3, 2004
4:23 am
2327
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 #...
manfred_lotz
Offline Send Email
Jul 4, 2004
10:17 am
2328
... 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...
Richard Jones
rwmjones
Offline Send Email
Jul 4, 2004
10:58 am
2329
... 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...
manfred_lotz
Offline Send Email
Jul 4, 2004
2:25 pm
2330
... 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....
Richard Jones
rwmjones
Offline Send Email
Jul 4, 2004
2:31 pm
2331
... word. ... Yep. I realized it when I had to put the definition of the function I wanted to use in infixed mode into a different file. -- Manfred...
manfred_lotz
Offline Send Email
Jul 4, 2004
2:48 pm
2332
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@...
Send Email
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...
dvanhorn_at_uvm
Offline Send Email
Jul 4, 2004
10:52 pm
2334
I can't find a definition of Pi anywhere in 3.07 ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd....
Richard Jones
rwmjones
Offline Send Email
Jul 5, 2004
2:31 pm
2335
... 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...
William Neumann
scoey13
Offline Send Email
Jul 5, 2004
2:46 pm
2336
... I think some of the ocaml docs/tutorials use 4. *. atan 1. (or some such thing) for this... R...
Rahul Siddharthan
rsidd
Offline Send Email
Jul 5, 2004
2:48 pm
2337
... what's wrong with? 13>0 cvalente@link$ ocaml Objective Caml version 3.07+2 # let pi =2. *. asin(1.);; val pi : float = 3.14159265358979312 # -- Cláudio...
Cláudio Valente
claudiovalente
Offline Send Email
Jul 5, 2004
3:11 pm
2338
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...
TBraibant
wisthler_thrawn
Offline Send Email
Jul 5, 2004
7:34 pm
2339
... I have not used one, but people have talked about this on the main list: ...
Karl Zilles
kzilles
Online Now Send Email
Jul 5, 2004
8:53 pm
2340
Hi, all What is the difference between camlp4 and ocaml? When will we use camlp4 instead of ocaml? Thanks a lot! Andy __________________________________ Do you...
Andy Yang
yyu08
Offline Send Email
Jul 6, 2004
10:06 pm
2341
... 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. -- ...
Richard Jones
rwmjones
Offline Send Email
Jul 6, 2004
11:35 pm
2342
So, what is the input for camlp4? It seems that in Ocaml, there are not header files like those in C/C++. Thanks. Andy ... __________________________________ ...
Andy Yang
yyu08
Offline Send Email
Jul 7, 2004
12:45 am
2343
... 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...
William Neumann
scoey13
Offline Send Email
Jul 7, 2004
12:53 am
2344
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...
Andy Yang
yyu08
Offline Send Email
Jul 7, 2004
12:55 am
Messages 2315 - 2344 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help