mflux has quit [Read error: 104 (Connection reset by peer)]
mflux has joined #ocaml
GreyLensman has joined #ocaml
cjohnson has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
yauz has joined #ocaml
yauz_ has quit [Read error: 60 (Operation timed out)]
pnou_ has quit ["au dodo"]
CosmicRay has joined #ocaml
monochrom has quit ["Don't talk to those who talk to themselves."]
GreyLensman has quit ["Leaving"]
debona|r has joined #ocaml
CosmicRay has quit ["Leaving"]
monochrom has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
Herrchen_ has joined #ocaml
Herrchen has quit [Read error: 60 (Operation timed out)]
jdrake has joined #ocaml
<jdrake>
how can I make an empty string list, [""] would imply a string list with an empty string in it I assume
<Riastradh>
[] : string list
<jdrake>
hmm, i thought I saw a list function that could modify a list in place (appending)
<Riastradh>
No. Lists are immutable.
<jdrake>
i guess I will need a reference to the list
<monochrom>
You can use arrays.
<monochrom>
strings themselves are also mutable.
<jdrake>
how do you append to the end of an array a single item
<Riastradh>
Arrays aren't the right thing to use if you're going to be stretching and contracting them frequently, like one often does with lists.
<jdrake>
i am just adding on here
<monochrom>
You've got me.
<jdrake>
actually I might as well tell you what I am doing so that maybe a suggestion can be put forth as I am probably going to come up with a hack anyways
<jdrake>
I need to take "create game" or... "[item][space(s)][item][space(s)][item][space(s)][item]..." and turn it into ["item", "item", "item"]
<rjudace>
Does anyone know of a good symbolic equation solver, i have an equation i want an analytic solutions for and I'm pretty sure it has an analytic solution
<rjudace>
let word_list_of_string s = Str.split (Str.regex " +") s
<monochrom>
Str.split
<jdrake>
i didn't think I saw that function
<jdrake>
what is this 'Str' module
<monochrom>
You have to scroll down the Str page a lot.
<monochrom>
ocaml's regex module.
<jdrake>
i don't see it heer
<jdrake>
oh I see it
<jdrake>
no wonder 'String' looks like it is missing its balls
<monochrom>
heh heh heh
<jdrake>
and here I was thinking ocaml's string support sucks
Nutssh has joined #ocaml
Nutssh has left #ocaml []
<jdrake>
any ideas why I keep getting: Reference to undefined global `Str' even after open Str;;
<Riastradh>
Not unless you show what gets you that.
<jdrake>
# Str.split;;
<jdrake>
also:
<jdrake>
# open Str;;
<jdrake>
# split;;
<Riastradh>
Peculiar.
<jdrake>
is Str pure ocaml
<mflux>
#load "str.cma";;
<jdrake>
nice
<jdrake>
i suppose I will have to put str.cma on the command line for linking
<jdrake>
why does ocaml seem to buffer output a little more than C
<monochrom>
I don't know why. I just know it does.