ayrnieu changed the topic of #ocaml to: OCaml 3.08.4 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/
aegray has quit [Read error: 110 (Connection timed out)]
aegray has joined #ocaml
_fab has quit [Read error: 113 (No route to host)]
Submarine has quit ["Leaving"]
aegray has quit []
<Aradorn> ok im writing a function that takes in a triple which it will use to match against other triples, so will it be written like this?
<Aradorn> errr nm
<Aradorn> im stupid
<Aradorn> =p
ramenboy has joined #ocaml
mrsolo has quit [Read error: 104 (Connection reset by peer)]
ramenboy has left #ocaml []
teiax has joined #ocaml
pango__ has joined #ocaml
Aradorn has quit ["( www.nnscript.de :: NoNameScript 3.81 :: www.XLhost.de )"]
pango_ has quit [Read error: 110 (Connection timed out)]
kryptt has joined #ocaml
kryptt has quit [Client Quit]
kryptt has joined #ocaml
__DL__ has joined #ocaml
__DL__ has quit [Remote closed the connection]
m3ga has joined #ocaml
__DL__ has joined #ocaml
__DL__ has quit [Remote closed the connection]
__DL__ has joined #ocaml
m3ga has quit ["Client exiting"]
__DL__ has quit [Remote closed the connection]
kryptt has quit ["Download Gaim: http://gaim.sourceforge.net/"]
teiax has quit [Read error: 110 (Connection timed out)]
mattam has quit [Read error: 110 (Connection timed out)]
Banana has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
Chipster has joined #ocaml
Chipster has quit []
pango__ has quit ["Client exiting"]
pango has joined #ocaml
Skal has joined #ocaml
batdog has quit [Read error: 110 (Connection timed out)]
batdog has joined #ocaml
batdog is now known as batdog|gone
batdog|gone is now known as batdog
chs_ has quit []
_fab has joined #ocaml
m3ga has joined #ocaml
mlh_ has quit [Client Quit]
vodka-goo has joined #ocaml
ppsmimou has joined #ocaml
Revision17 has joined #ocaml
revision17_ has quit [Read error: 110 (Connection timed out)]
mattam has joined #ocaml
Banana has joined #ocaml
Submarine has quit ["Leaving"]
vezenchio has quit ["I could see how [James Randi] comes off as a bit abrasive, as he uses terms like "gobbledigook" and "woo-woo" when referring ]
systems has joined #ocaml
m3ga has quit ["Client exiting"]
systems has quit [Read error: 101 (Network is unreachable)]
oracle1 has joined #ocaml
<oracle1> is there an easier way to get all keys of a hashtable than iterating over it and building a list containing all keys?
Oatly has joined #ocaml
bernardo has joined #ocaml
Oatmeat has quit [Read error: 110 (Connection timed out)]
<vodka-goo> oracle1: I'd say no (except that fold is better than iter here)
<dylan> Hashtbl.map would be nice to have.
<vodka-goo> you can also use Map instead of Hashtbl, but it's slower in general
<vodka-goo> it offers map and comparisons
<dylan> map is useful for making persistent graphs
threeve has joined #ocaml
kryptt has joined #ocaml
bernardo has quit [Connection timed out]
bernardo has joined #ocaml
gl has joined #ocaml
gl has left #ocaml []
OtherAlfie has joined #ocaml
Snark has joined #ocaml
Schmurtz has joined #ocaml
brx_ has joined #ocaml
chs_ has joined #ocaml
brx has quit [Read error: 110 (Connection timed out)]
kryptt has quit ["Download Gaim: http://gaim.sourceforge.net/"]
Chipster has joined #ocaml
Chipster has quit [Client Quit]
Chipster has joined #ocaml
Chipster has quit []
__DL__ has joined #ocaml
exa has joined #ocaml
goron has joined #ocaml
OtherAlfie has quit ["*padpad*"]
mattam has quit [Read error: 104 (Connection reset by peer)]
Banana has quit [Read error: 104 (Connection reset by peer)]
ramkrsna has joined #ocaml
Banana has joined #ocaml
mattam has joined #ocaml
lambdawar has quit [Remote closed the connection]
ramkrsna has quit [Read error: 113 (No route to host)]
vezenchio has joined #ocaml
lambdawar has joined #ocaml
Bigb[a]ng is now known as Bigbang
shirogane has joined #ocaml
demitar_ is now known as Demitar
pango has quit ["Leaving"]
Mathman has joined #ocaml
<Mathman> hi there. when something's called an infix operator, what's that mean exactly? that things are evaluated right to left?
<Mathman> in particular I'm talking about the :: operator.
<Snark> infix means "in the middle"
<Mathman> ah, nevermind. yeah. wikipedia kinda did a good job explaining
<Mathman> I need to remember to hop on there first before I hit google I think
pango has joined #ocaml
<Mathman> hmm, but when something like this works: 1 :: 2 :: [3];;
<Mathman> I'd kinda expect something like this to work too: [1; 2] :: [3; 4];;
<Mathman> guess not though...
<mellum> :: is of type 'a -> 'a list -> 'a list, not 'a list -> 'a list -> 'a list
<mellum> what you probably want is @
<Mathman> ok
m3ga has joined #ocaml
ppsmimou has quit ["Leaving"]
Lad has joined #ocaml
Lad has left #ocaml []
Bigbang is now known as Bigb[a]ng
smimou has joined #ocaml
shirogane has quit [Remote closed the connection]
aegray has joined #ocaml
<aegray> http://pastebin.com/400200 <-- why is the _-> None not catching the extra cases that ocaml says i'm not exhausting?
<aegray> (BinOpExp is commented out)
Snark has quit ["Parti"]
goron has quit ["Lost terminal"]
<aegray> better explanation: http://pastebin.com/400217
<aegray> any clues?
<mflux_> yeah
<mellum> aegray: what is unclear about that message?
<mflux_> nasty association problem
<aegray> why is it not matching those cases with _->None at the end?
<mflux_> use an editor that can reindent code and you'll see it ;)
<mflux_> you need to use parenthesis around the last match
<aegray> wow...thank you
<aegray> heh
<aegray> any good editors for linux?
<aegray> s/any/which ones are/
<mflux_> (x)emacs of course.
<m3ga> I like www.nedit.org with some of my own customisations
<mellum> m3ga: does it do automatic correct indentation of Ocaml code?
<m3ga> it does for me. ymmv
<aegray> wow thanks mflux_ - those little parens made such a difference
<aegray> :)
<m3ga> mellum: do you mean re-indent or just on the fly indent?
<aegray> is there any kind of ocaml formatting for vi available?
<smimou> yes, omlet
<vodka-goo> yes, omlet :p
Chipster has joined #ocaml
<mellum> m3ga: well, if your editor can do one of those it can probably do both :)
<m3ga> well it doesn't on the fly indentation (with a little manual help). it doesn't do a full re-indent unless you have an external program to do that.
<vodka-goo> there is no program like "indent" for ocaml as far as I know
<mellum> m3ga: Hmm. I wouldn't like that.
<Chipster> bonne nuit tout le monde
Chipster has quit []
<Mathman> good something to the world?
<Mathman> hehe, my french is a little lacking
<aegray> good nite to the world
<aegray> night maybe
<Mathman> ah, gotcha
<Schmurtz> yes, it's 23H in france
teiax has joined #ocaml
bernardo_ has joined #ocaml
m3ga has quit ["Client exiting"]
<Mathman> nice to know I'm not a total dummy. the second time around this ocaml book is making a lot more sense.
<Mathman> =)
bernardo has quit [Read error: 110 (Connection timed out)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
<dylan> I attempted on six different occasions to learn ocaml.
<dylan> The seventh time seems to be working. :)
bernardo__ has joined #ocaml
bernardo__ is now known as bernardo
bernardo__ has joined #ocaml
Albstein has joined #ocaml
threeve has quit []
bernardo__ has quit [Read error: 104 (Connection reset by peer)]
bernardo_ has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
Skal has quit ["Client exiting"]
vezenchio has quit [Read error: 110 (Connection timed out)]
bernardo has quit [Read error: 110 (Connection timed out)]
threeve has joined #ocaml
<vodka-goo> dylan: Mathman: glad you're both successful.. but I'm curious, why do you try so hard (especially dylan!) ?
threeve has quit []
<Mathman> vodka-goo: because I need to unlearn years of assembly, fortran, and C?
<Submarine> why unlearn?
<vodka-goo> :)
<Mathman> hehe, nah, I mean, I just find ocaml interesting for one. I want to learn more about it
<vodka-goo> good to hear.. unfortunately, most ocaml programmers I know have first been forced to learn it
<vodka-goo> it's not a very sexy langage in some sense, unlike perl/python/ruby/...
<Mathman> yeah, I've been messing with python a bit. it's ok. pretty easy to make a little gtk app anyway. ruby is certainly on my agenda. for now I'm on an ocaml kick though.
<Demitar> It's a language you grow to appreciate, and in the end never want to turn back from. :)
<Mathman> truth be told, bash is probably the language I'll never turn my back on
<Mathman> I mean, I probably do more things with bash on a day to day basis than anything
<Demitar> Yes, but it's a very domain specific language, not a good general programming language. :)
<Mathman> very true
mlh_ has joined #ocaml
smimou has quit ["bli"]
exa has quit [Remote closed the connection]