Rich-- I'm a bit slow getting back to you, but I wanted to say thanks for the help. I really appreciate it. Erick ... [Non-text portions of this message have...
... Hello, I'm not sure I completely understood your question - especially I don't see what you mean by images 1 and 2 - but the following code computes the...
Chantal KELLER
chantal.keller@...
Oct 27, 2009 9:45 am
11513
Let's say we have these modules types : # module type VTYPE = sig type t val value : t end;; module type VTYPE = sig type t val value : t end # module type...
... Try this one instead: # module MAKE_PTYPE (V_:VTYPE) : PTYPE with type V.t = V_.t = struct module V=V_ let foo v = 1 end;; Ocaml does not make the...
Hi, I just got started on ocaml and am new to functional programming. I have written a ocaml module for CIL to analyze a C program. The problem I am having is...
... It's hard to say from your description, but could it be that the total memory used is bigger than the available memory, and it's thrashing? The OCaml GC...
... exception My_error of string;; let my_fun () = raise (My_error "this is an error") ;; let () = try my_fun () with My_error str -> prerr_endline ("An error:...
Hello all I am looking for soem examples (Pleac-like examples, not "documentation") on using tables and forms with select>option with Eliom (XHTML). Have you...
Hello, I am hardly trying to understand the camlpdf-library, because I want to write a function which gets a pdf-file and returns a list of pairs of ...
Romeyke, Andreas
andreas.romeyke@...
Oct 30, 2009 10:25 am
11523
Hi, ... I'm attaching a simple example for select. I'll post an example with tables momentarily. Hope it helps! Best regards, Dario Teixeira [Non-text portions...
Hi again, ... ...And here's an example with XHTML.M.tablex, as promised. Note that the construction of XHTML tables with Ocsigen seems overly complex at first...
Hi all, I am trying to understand how to get all possible combinations of a list of list: # combs [['a';'b';'c'];['1';'2'];['Y';'Z']];; char list list = ...
citromatik
miguel.pignatelli@...
Oct 30, 2009 5:14 pm
11527
... Assume you have a function that does the job for a list with n elements (sublists) and write one (using the former) for a list with n+1 elements. You can...
Christophe TROESTLER
Christophe.Troestler+...
Oct 30, 2009 6:53 pm
11528
This is probably not the most efficient way, but this does what I think you want to do: let combo ll = let rec aux accu = function ... combo (List.flatten ...
On Fri, 30 Oct 2009 18:14:20 +0100, citromatik <miguel.pignatelli@...> ... This would do the trick: let combs elems = List.fold_right (fun heads tails -> ...
Till Crueger
Till.Crueger@...
Oct 30, 2009 9:01 pm
11530
Is there any disadvantage (performance, e.g.) to having a function return [] or [string], and consume it via let collecting traversal = let retval = ref [] in ...
I think performance-wise the difference is very small. But you should use the option type to express your program's semantics correctly! On Sat, Oct 31, 2009...
thinking about it, you're right, i was being silly :) code changed to use option type. martin ... [Non-text portions of this message have been removed]...
You may need some general functions that lack from the basic standard library: let unsome default = function ... let map_some f l = let rec maps_f accu =...
How would I use batteries along with OCamlMakefile? (I tried the ocamlbuild way and got nowhere; I've not been able to get mikmatch and ledit working with...
... Hash: SHA1 I'm not sure how to do it on your system, but with a GODI based OCaml distribution all you have to do is add "batteries" into your "PACKS" ...
Peng Zang
peng.zang@...
Nov 2, 2009 2:02 pm
11536
... Ah, the perpetual tension between the distribution's package manager and the language's :) Anyway, I've uninstalled ocaml and packages from arch and...
... Hash: SHA1 I'm thrilled you installed GODI! Isn't it awesome? I run Gentoo and for a long time I used the ocaml packages in portage, but it just didn't...
Peng Zang
peng.zang@...
Nov 2, 2009 11:53 pm
11538
... yeah, it looks very neat :) some packages (lablgl, lablgtk and omake) compiled from pacman but not from godi, but i don't need any of them immediately and...
... Distribution package management is one of the strength of Linux. -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche &...