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