__DL__ changed the topic of #ocaml to: OCaml 3.09.0 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
malc_ has quit ["leaving"]
__DL__ has quit [Remote closed the connection]
smimou has quit ["bli"]
gim has quit []
quamaretto has quit [Read error: 104 (Connection reset by peer)]
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
Smerdyakov has quit ["Leaving"]
pango_ has joined #ocaml
pango has quit [Read error: 110 (Connection timed out)]
jeremy_c has left #ocaml []
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
quamaretto has joined #ocaml
Sylvain has joined #ocaml
<Sylvain> hey that's cool i am recompiling ocaml on beos :)
Raziel has quit [Read error: 110 (Connection timed out)]
shirogane has joined #ocaml
<lispy> wow, beos is stillaround?
<Sylvain> yes it is
<Sylvain> i still use it for many many things, from latex to firefox
<Sylvain> from pdf to supernes games
<Sylvain> from irc to p2p
<Sylvain> (by MLdonkey !!)
<KrispyKringle> latex?
<KrispyKringle> So you switch into BeOS just to type things in latex?
<KrispyKringle> Why?
Herrchen_ has joined #ocaml
<Sylvain> no i switch because it doesn't bug and it is very easy and user friendly and i can do all that i did before with windows or linux
Herrchen has quit [Read error: 110 (Connection timed out)]
Sylvain has quit ["Vision[0.8.5-0418]: i've been blurred!"]
Revision17 has quit ["Leaving"]
KrispyKringle has quit [Remote closed the connection]
DeathWolf has joined #ocaml
KrispyKringle has joined #ocaml
shirogane has quit [Remote closed the connection]
Skal has joined #ocaml
Herrchen_ is now known as Herrchen
<DeathWolf> hum, let's say i have an array of string, i want to calc the sum of all strings in this array's length, what would be the proper functional way?(if there's any), it's pretty easy with a for, but quite dirty too(since one has to use another var)
<KrispyKringle> I'd use fold, I think. :)
<KrispyKringle> What's the string length function?
<KrispyKringle> Ah, string.length :)
<DeathWolf> yep
<KrispyKringle> Array.fold_left (fun x y -> x + (String.length y)) 0 [|"a"; "foo"|]
<DeathWolf> sounds good
<ski> (s/x/currentSum/ s/y/aString/ or something, if you want more verbose)
<Herrchen> hi
<KrispyKringle> Howdy.
<DeathWolf> what about how to write the char that represents space?
<DeathWolf> n/m
CLxyz has joined #ocaml
pango_ has quit [Remote closed the connection]
pango has joined #ocaml
Raziel has joined #ocaml
m3ga has joined #ocaml
<DeathWolf> hum
<m3ga> ho
<DeathWolf> type cellvalue = Text of string| Integer of int | Void;; type cellcomplete = { mutable value: cellvalue; mutable dependencies: cellvalue list; mutable updated: bool};; =>i'd like the affectValueString to work with a cellcomplete array array, and not a cellvalue array array, how do i specify it? currently it is: let affectValueString stringValue n m table = table.(n-1).(m-1).value <- (Text stringValue);;
<flux__> hmm
<flux__> if I type that in, it gives me val affectValueString : string -> int -> int -> cellcomplete array array -> unit = <fun>
<flux__> that is, it works with cellcomplete array array's
<flux__> you're playing with it in the interactive environment, right? and maybe have older, different, declarations there earlier..
<DeathWolf> hum i guess something like that
fab_ has quit []
m3ga has quit ["disappearing into the sunset"]
Revision17 has joined #ocaml
rillig has joined #ocaml
malc_ has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
quamaretto has quit [Read error: 110 (Connection timed out)]
quamaretto has joined #ocaml
<DeathWolf> okay... stupid one... a clean way to append many strings...
<DeathWolf> Printf.printf ("%-" ^ (string_of_int cellWidth) ^ "." ^ (string_of_int cellWidth) ^ "s") currentCellString; => wont work for some reason... but feel free to kick me
<flux__> try: Printf.printf "%-*.*s" cellWidth celWidth currentCellString
<flux__> except that's an invalid format string anyway?-)
<flux__> those format strings aren't ordinary strings
Smerdyakov has joined #ocaml
ski has joined #ocaml
__DL__ has joined #ocaml
Smerdyakov has quit ["Leaving"]
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
kryptt has joined #ocaml
<vincenz> hp
ppsmimou has quit [Remote closed the connection]
Linyin has joined #ocaml
Linyin has quit ["Leaving"]
smimou has joined #ocaml
johnaman has joined #ocaml
<flux__> ibm?
Snark has joined #ocaml
vodka-goo has joined #ocaml
<johnaman> hi
<vodka-goo> hi
<johnaman> hi vodka
<dylan> hmm, this is a bit of an unusal question, not ocaml related... But, could "Spiteri" be a French last name?
<johnaman> hey
Bigb[a]ng is now known as Bigbang
gim has joined #ocaml
<dylan> n/m.
<johnaman> hi
johnaman has quit ["Leaving"]
gim has quit ["neige"]
knobo_ has quit [Remote closed the connection]
knobo has joined #ocaml
kryptt has quit [Read error: 110 (Connection timed out)]
rillig has quit ["Updating to NetBSD 3.0 ..."]
rillig has joined #ocaml
<DeathWolf> is there an equivalent of a::b for arrays in pattern matching in ocaml?
ulfdoz has quit [Remote closed the connection]
ulfdoz has joined #ocaml
ulfdoz has quit [Client Quit]
ulfdoz has joined #ocaml
Snark has quit ["Leaving"]
Bigbang is now known as Bigb[a]ng
_JusSx_ has joined #ocaml
<flux__> deathwolf, I don't think so. ocaml manual only states that array pattern are of form [|p1;..pn|] and match arrays of length n
<DeathWolf> yeah
<DeathWolf> ended up converting it temporarily into a list
kryptt has joined #ocaml
__DL__ has quit [Remote closed the connection]
Schmurtz has quit ["Dodo !"]
kryptt has quit ["Download Gaim: http://gaim.sourceforge.net/"]
rillig has quit ["exit(EXIT_SUCCESS)"]
pango has quit ["Leaving"]
pango has joined #ocaml