adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.02.3 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
shinnya has quit [Ping timeout: 265 seconds]
lobo has quit [Quit: leaving]
lokien_ has quit [Quit: Connection closed for inactivity]
Stalkr_ has quit [Quit: Leaving...]
madroach has quit [Ping timeout: 246 seconds]
<t4nk020> quelque 'un de connecte svp
<t4nk020> j'aurais besoin d'aide pour une petite fonction :/
madroach has joined #ocaml
<Mirry> You should ask your question in english t4nk020
<t4nk020> sorry
<t4nk020> lol so hard to explain my problem...
<t4nk020> my english is bad
<Mirry> Je parle français mais j'ai commencé le ocaml il y a deux jours
<Mirry> Donc pas sûr de pouvoir t'aider
<t4nk020> ha
<Mirry> Par contre je pourrai traduire si besoin est
<t4nk020> bon c'est un peu long
<nullcatxxx_> what question about petite fonction?
<t4nk020> ha
<nullcatxxx_> i can use Google Translate
<Mirry> We're about to find out
<t4nk020> Mirry tu peux lui dire
<t4nk020> je dois representer un clavier de type t9 avec un arbre lexicographique. J'ai un probleme sur une fonction qui va fonctionner sur l'affichage des mots
<t4nk020> d'un arbre lexicographique
<nullcatxxx_> ok
<Mirry> nullcatxxx_, in need of a translation ? Or did you get the gist of it
<nullcatxxx_> i got it..
<Mirry> t4nk020, si tu as du code à montrer, ce serait mieux
<t4nk020> enfaite il faut que j'introduise
<t4nk020> mon probleme a moins qu'il soit vraiment un expert en ocaml pour comprendre
<t4nk020> voici mon code :
<Mirry> non non
<Mirry> attends
<Mirry> donne le sur un site
<Mirry> pas comme ça sur irc
<Mirry> Sinon c'est horrible à lire
<t4nk020> ok je fais ca
<t4nk020> sur syntaxe ocaml
<nullcatxxx_> you can put code on pastebin.com
<t4nk020> okay
<t4nk020> I want to introduce the subjet or you can easly understand what is about by simply reading my code
<t4nk020> my problem is :
<nullcatxxx_> ok
<t4nk020> I have lexicographic tree , which contains a principal tree with plugged
<t4nk020> " branche "
<t4nk020> en anglais :/
<Mirry> branch
<t4nk020> yes
<t4nk020> thank Mirry
<t4nk020> which contains principal tree with branch
<t4nk020> for exemple the word : " bob " with t9 keyboard of cellphone is 2 6 2
<nullcatxxx_> yes
<t4nk020> but with also have " boa " with 2 6 2
<nullcatxxx_> yes
<t4nk020> so when we insert 2 6 2 in our lexicographic tree
<t4nk020> in our princpal tree I mean
<t4nk020> in 2 6 2*, the 2* is a terminal node
<nullcatxxx_> yes
<t4nk020> 2 6 non-terminal node
<nullcatxxx_> yes
<t4nk020> 2* contains auxiliary
<t4nk020> tree
<t4nk020> why ? to make the difference between bob and boa
<t4nk020> how ? the auxiliary tree contains the ... hmm location
<t4nk020> for example
<t4nk020> in ma code , b is at 1 location in 2
<t4nk020> and a is 0 at '2'
<nullcatxxx_> i see
<t4nk020> now
<t4nk020> I have a fonction that insert a word in a tree
<t4nk020> like : let a = insert "bob" Vide_Aux ( Empty Aux)
<t4nk020> And assoc as if I do this : assoc 2 6
<t4nk020> the function return 2* and the auxiliary tree , wich for bob is 1 3 1
<t4nk020> do you understand me or ??
<nullcatxxx_> let me think...
<t4nk020> Mirry
<Mirry> ?
<nullcatxxx_> why.. it's 1 3 1
<t4nk020> 2 62
<t4nk020> 2 6 2 for bob
<t4nk020> for exemple
<t4nk020> 2 contains abc
<t4nk020> 3 def
<nullcatxxx_> it's just 2AM in Europe. I don't know why there aren't more people who know French...
<nullcatxxx_> Drup
<nullcatxxx_> ok
<t4nk020> 'a' is at 0 of 2 , and 'b' 1 of '2'
<nullcatxxx_> "wich for bob is 1 3 1"
<nullcatxxx_> ok
<nullcatxxx_> i see!
<nullcatxxx_> i see you point!
<t4nk020> I have a couple
<nullcatxxx_> so, what's the problem
<t4nk020> Ok so we know that at 2* of 2 6 2
<t4nk020> 2 6 2*
<nullcatxxx_> yes
<t4nk020> there are 2 auxiliary lexicographic
<t4nk020> no
<t4nk020> we have 1 lexicografic tree
<t4nk020> damn... WE HAVE a auxiliary lexicografic tree which contains branch
govg has quit [Ping timeout: 260 seconds]
<t4nk020> we have one branch for bob
<nullcatxxx_> ok
<t4nk020> wich is 1 3 1
<t4nk020> and another for boa
<nullcatxxx_> 1 3 0
<nullcatxxx_> right?
<t4nk020> yes
<t4nk020> sorry
<nullcatxxx_> then?
<t4nk020> now I have a function : print_assoc
<t4nk020> print_assoc : string -> trie -> unit
<t4nk020> for exemple : print_assoc "262" tree ... returns boa and bob
<t4nk020> that's the point of 1 week research
<t4nk020> ok la phrase pouri lol
<t4nk020> So now my problem is
<t4nk020> I have the function but it dosnt work
<t4nk020> She reutnr me 4 times boa instead of boa and bob...
<t4nk020> return*
<t4nk020> you can see in my code at the bottom
<t4nk020> Mirry tu as compris le truk ??
<nullcatxxx_> ok let me see if I can work it out
<Mirry> t4nk020, je vois ce que tu veux faire, mais je ne connais pas assez d'ocaml pour le faire
<t4nk020> oui c'est dommage
<nullcatxxx_> your code has many syntax and semantic errors.. i don't know what to do
<nullcatxxx_> where is Drup ?
<t4nk020> What do you mean by Drup
<t4nk020> When I compil all my code there is no errors
<t4nk020> are*
<t4nk020> Feuille = Leaf
<t4nk020> Terminal node contain auxiliary tree
<t4nk020> not a node but a Leaf*
teknozulu has quit [Ping timeout: 260 seconds]
<t4nk020> Mirry je sais pas si il est partie ou pas ???
teknozulu has joined #ocaml
<Mirry> Il cherche à t'aider
<Mirry> Ton code apparament n'est pas le plus idiomatique
<t4nk020> quand je le compile il n'y a aucune erreur
<t4nk020> c'est quoi Drup ?
<Mirry> Je ne sais pas
<Mirry> Je ne te suis pas d'une grande aide hein :D
<t4nk020> c'est peut-être quelqu'un de fort en Ocaml
<t4nk020> Le truk c'est que la personne qui m'a aidé toute à l'heure c'etait
<t4nk020> zozozo et elle est partie ^^
<Mirry> Arf
<Mirry> Pas de chance
<t4nk020> enfaite
<t4nk020> il est afk je crois
<t4nk020> bon je dois y aller je repasserai demain
<Mirry> sure ?
<Mirry> sinon je lui demande
<t4nk020> de quoi ?
<Mirry> bah si il t'aide toujours
<Mirry> ou si il s'est barré
<t4nk020> ha ba oui
<t4nk020> mais je l'ai mp il est afk
<t4nk020> apperement
<Mirry> ah d'accord
<Mirry> Bah désolé mec
<t4nk020> pas de soucis
<t4nk020> lol
<t4nk020> merci quand m^eme en tous cas bonne soirée je repasserai demain
<Mirry> See you
<lostman> anybody around familiar with react? I'm trying to construct a 'a event event. when an event happens, I want an event that gives me that event
<lostman> I came up with this:
<lostman> let (tick_new_ee : 'a event event) = E.fix (fun d -> tick_new, E.stamp tick_new d)
<lostman> and it works in utop as expected, when I trigger tick_new, I get tick_new_ee; but in the browser with js_of_ocaml it is triggered multiple times
t4nk020 has quit [Quit: Page closed]
<lostman> I don't know if this is a bug or my misunderstanding
lostman_ has joined #ocaml
FreeBirdLjj has joined #ocaml
lostman_ has quit [Client Quit]
lostman_ has joined #ocaml
sz0 is now known as sz0`
sgnb` has joined #ocaml
sgnb has quit [Ping timeout: 250 seconds]
sz0` is now known as sz0
jeffmo has quit [Ping timeout: 245 seconds]
sz0 is now known as sz0`
struk|desk|away is now known as struk|desk2
mrvn has quit [Ping timeout: 260 seconds]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Denommus has joined #ocaml
ril has joined #ocaml
mrvn has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Simn has quit [Ping timeout: 255 seconds]
struk|desk2 is now known as struk|desk|away
pierpa has quit [Quit: goes to bed]
ril has joined #ocaml
struk|desk|away is now known as struk|desk2
johnelse has quit [Ping timeout: 260 seconds]
jeffmo has joined #ocaml
tmtwd has joined #ocaml
johnelse has joined #ocaml
johnelse is now known as Guest37748
mac10688 has quit [Ping timeout: 255 seconds]
sz0` is now known as sz0
jeffmo has quit [Read error: Connection reset by peer]
jeffmo has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ygrek has quit [Remote host closed the connection]
sz0 is now known as sz0`
jeffmo has quit [Quit: jeffmo]
psy_ has quit [Quit: Leaving]
Guest22082 has quit [Quit: Guest22082]
Mercuria1Alchemi has joined #ocaml
lokien_ has joined #ocaml
darkf has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 255 seconds]
sz0` is now known as sz0
sz0 is now known as sz0`
Mercuria1Alchemi has quit [Ping timeout: 250 seconds]
Mirry has quit [Quit: leaving]
tmtwd has quit [Ping timeout: 245 seconds]
gal_bolle has joined #ocaml
teknozulu_ has joined #ocaml
blub has quit [Read error: Connection reset by peer]
blub has joined #ocaml
d0nn1e has quit [Ping timeout: 250 seconds]
teknozulu has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ocaml
sfri has quit [Remote host closed the connection]
JacobEdelman has quit [Quit: Connection closed for inactivity]
mahem1 has quit [Ping timeout: 250 seconds]
sfri has joined #ocaml
Denommus has quit [Quit: going to sleep]
gal_bolle has quit [Quit: Konversation terminated!]
damason has joined #ocaml
teknozulu_ has quit [Ping timeout: 245 seconds]
Haudegen has quit [Ping timeout: 246 seconds]
struk|desk2 is now known as struk|desk|away
damason has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
Haudegen has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
ely-se has joined #ocaml
alsm has joined #ocaml
alsm has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ocaml
sgnb` is now known as sgnb
alexey has left #ocaml [#ocaml]
roquess has joined #ocaml
lefrerej has joined #ocaml
<roquess> voila
roquess has left #ocaml [#ocaml]
lefrerej has left #ocaml [#ocaml]
lokien_ has quit [Quit: Connection closed for inactivity]
manizzle has joined #ocaml
kakadu has joined #ocaml
<sgronblo> is there anything like purescript but based on ML?
<MasseR> sgronblo: js_of_ocaml? elm?
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ocaml
<sgronblo> MasseR: Isn't js_of_ocaml more like ghcjs?
<MasseR> It is, but it renders js from straight up ocaml :)
<sgronblo> Yah but I was thinking something that takes the purescript appraoch of just creating a language that would be very ML-like but which renders to something that is closer to normal JS?
<sgronblo> And I haven't really checked out elm enough to know if its closer to ML or Haskell?
Simn has joined #ocaml
<MasseR> sgronblo: I originally thought it was more haskell-like, but in their latest blog post they kept mentioning 'ml-like'
mort___ has joined #ocaml
<def`> Haskell and MLs are very close.
jacquev6 has joined #ocaml
_andre has joined #ocaml
rossberg has joined #ocaml
Stalkr_ has joined #ocaml
jacquev6 has quit [Quit: jacquev6]
jacquev6 has joined #ocaml
jacquev6 has quit [Quit: jacquev6]
jacquev6 has joined #ocaml
jacquev6 has quit [Quit: jacquev6]
<Drup> elm has an haskell syntax, but is more ml like
tvaalen has quit [Ping timeout: 264 seconds]
<Drup> (I'm of the opinion than rendering to "normal JS" is completely overated anyway, especially when you introduced advanced concept, since it's going to be completely alien to JS anyway)
<Drup> (also, js_of_ocaml maps ocaml's semantic to js' much more nicely than ghcjs)
<kakadu> Guys, what is the purpose of `options: (string * Parsetree.expression) list` in http://whitequark.github.io/ppx_deriving/Ppx_deriving.html ?
larhat1 has quit [Quit: Leaving.]
zpe has joined #ocaml
<Anarchos> kakadu: to store the list of the options ?
<kakadu> Yeah, but how they are passed?
<kakadu> whitequark show really know...
Guest37748 is now known as johnelse
<Drup> kakadu: probably [@@deriving show bla bli blo]
<Drup> it's a function application, hence the (string * expression) list.
<Drup> (from the parsetree point of view)
<kakadu> thx
tvaalen has joined #ocaml
tvaalen has quit [Changing host]
tvaalen has joined #ocaml
jacquev6 has joined #ocaml
mort___ has quit [Quit: Leaving.]
mort___ has joined #ocaml
Haudegen has quit [Ping timeout: 250 seconds]
jacquev6 has quit [Quit: jacquev6]
jacquev6 has joined #ocaml
Haudegen has joined #ocaml
JacobEdelman has joined #ocaml
ollehar has joined #ocaml
yomimono has joined #ocaml
jacquev6 has quit [Quit: jacquev6]
jacquev6 has joined #ocaml
struk|desk|away is now known as struk|desk2
zpe has quit [Remote host closed the connection]
jacquev6 has quit [Quit: jacquev6]
jacquev6 has joined #ocaml
Nahra``` has quit [Remote host closed the connection]
Nahra``` has joined #ocaml
neferty has quit [Quit: No Ping reply in 180 seconds.]
neferty has joined #ocaml
ahf has joined #ocaml
struk|desk2 is now known as struk|desk|away
jacquev6 has quit [Quit: jacquev6]
mcmillhj_ has quit [Quit: leaving]
BitPuffin has joined #ocaml
struk|desk|away is now known as struk|desk2
govg has joined #ocaml
yomimono has quit [Ping timeout: 260 seconds]
tane has joined #ocaml
ggole has joined #ocaml
jacquev6 has joined #ocaml
ely-se has quit [Quit: leaving]
Sorella has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
tmtwd has joined #ocaml
tumdum has quit [Ping timeout: 276 seconds]
tumdum has joined #ocaml
yomimono has joined #ocaml
psy_ has joined #ocaml
ggole_ has joined #ocaml
ely-se has joined #ocaml
ggole has quit [Ping timeout: 246 seconds]
ggole_ has quit [Read error: Connection reset by peer]
ggole_ has joined #ocaml
jeffmo has joined #ocaml
groovy2shoes has quit [Remote host closed the connection]
zpe has joined #ocaml
groovy2shoes has joined #ocaml
sz0` is now known as sz0
zpe has quit [Ping timeout: 255 seconds]
<sgronblo> Drup: what do you mean by completely alien to JS?
<Drup> sgronblo: code with type classes in it is not exactly going to compile to idiomatic js.
<theblatte> I forgot to -I somedir before running utop, is there a #something I can do to correct it or must I restart utop?
<sgronblo> Drup: yeah not what a "normal" JS guy might write, but maybe a JS programmer who understands how type classes are implemented?
drmem has quit [Ping timeout: 250 seconds]
drmem has joined #ocaml
<Drup> sgronblo: not if it's optimized ..
<Drup> as I said, I don't even believe that's any use
<sgronblo> well if you worry about the code being fully optimized you should probably write plain JS?
<Drup> that is a common misconception :)
<sgronblo> is that so?
<Drup> it's similar to saying "you can make it faster by rewriting it in assembly"
<Drup> it's true ... if you have very good knowledge of the processor you are writing your assembly for
<sgronblo> and are willing to spend an ungodly amount of time
<Drup> compilers to js, if they are optimizing (a good amount of them aren't) emits javascript that is easy for browser JITs
<sgronblo> yeah this might be very true
<sgronblo> does the js created by js_of_ocaml work well with source maps?
<Drup> (for jsoo, for example, a dev spend some time considering the various implementations for arrays and strings that would provide the best performances on the various browsers. You could repeat that for each app, but it's done once in a compiler ...)
<Drup> sourcemap are annoying to setup, but I think they work okay
<sgronblo> i also find it appealing that the js being output is something that you have some hope of understanding if you have to open up a debugger (assuming you havent minified it)
<sgronblo> i also just figured that an impure language would be even more suited for compiling to some reasonable js
<Drup> and strict
<Drup> compiling lazyness to js is, imho, a terrible idea
<Drup> (purescript is strict ...)
<sgronblo> yeah it is
<sgronblo> anyway one thing which led me on to this reasoning was i just had a quick look at some of the js files (which i assume were generated by js_of_ocaml) when i was doing the french ocaml mooc and it seemed kinda horrible
<Drup> of course it's horrible, it's optimized and minimized
<Drup> x)
<Drup> sgronblo: get some piece of js though google's closure compiler, it will not be pretty either
<sgronblo> hmm, maybe it was minimized. didnt consider that possibility.
<sgronblo> might have made more sense if it was "unminimized"
<Drup> (in the case of jsoo, not much, no)
<sgronblo> ah ok
t4nk334 has joined #ocaml
jeffmo has quit [Quit: jeffmo]
ely-se has quit [Quit: leaving]
<Leonidas> Drup: here's the simplified code that fails: https://gist.github.com/Leonidas-from-XIV/0cc6494d2d3567ff1339
<Drup> hum, node.
<edwin> is I/O in js_of_ocaml real or just a stub?
<Drup> depends on the IO
<Drup> Leonidas: open a bug report
<t4nk334> salbonjour
<t4nk334> bonjour
vpm has quit [Quit: co'o]
<t4nk334> quelqu'un peut me dire quant zozozo sera sur le chat ?
<Drup> t4nk334: Encore une fois, ici c'est en anglais. Le francais c'est sur #ocaml-fr.
<t4nk334> ha désoler
<t4nk334> Drup hier soir j'avais un probleme en Ocaml
vpm has joined #ocaml
pierpa has joined #ocaml
<sgronblo> is ocsigen like the major web framework of ocaml or?
<sgronblo> i hope im not offending anyone now but the web site for it looks a bit crappy
<Leonidas> well, it is probably the oldest but I'm not sure I would call it the major
<Leonidas> to me it is like a forge for lots of cool and interesting smaller projects :)
<sgronblo> which one is the most widely used then?
<Drup> sgronblo: it is a known issue :D
<Leonidas> sgronblo: none.
jeffmo has joined #ocaml
Anarchos has quit [Quit: Page closed]
<Drup> sgronblo: it's the biggest, size-wise, but hard to say anything about usage
<JacobEdelman> how could I print a functions type signature in ocaml?
<JacobEdelman> inside a program, not the repl
<pierpa> you can't
<JacobEdelman> erg
Mercuria1Alchemi has joined #ocaml
<pierpa> why cos == cos ====> false; and List.rev == List.rev ====> true?
<def`> pierpa: you should'n rely on physical equality for functions
<def`> in your case, it is because cos is a primitive, so each time you get a new closure (or not, depending on optimisations / backend)
<pierpa> yes, I'm reading just now that that is implementation-dependent
<pierpa> ty
<def`> you can expect it to be "finer": if it returns true, it is indeed true, if it is false, it's a different object although it might compute the same value
<pierpa> ok
<def`> cody`: but merlin is not analysing its own process
<def`> in general, you can use compiler-libs to reuse internal functions from the compiler, but this is not an easy task
ggole__ has joined #ocaml
arjunguha has joined #ocaml
arjunguha has quit [Client Quit]
ggole_ has quit [Ping timeout: 240 seconds]
<ggole__> I've always found it a bit strange that closures were generated from primitives in that way, rather than cached (or precomputed)
jacquev6 has joined #ocaml
<ggole__> Surely it adds considerably to code size if you get a new function every time you write (+)
Mirry has joined #ocaml
jacquev6 has quit [Ping timeout: 260 seconds]
ggole_ has joined #ocaml
ggole__ has quit [Ping timeout: 250 seconds]
pyon has quit [Quit: Loops are hard, let's GOTO shopping!]
struk|desk2 is now known as struk|desk|away
Mirry has quit [Ping timeout: 246 seconds]
shinnya has joined #ocaml
sfri has quit [Remote host closed the connection]
t4nk334 has quit [Ping timeout: 252 seconds]
lobo has joined #ocaml
Haudegen has quit [Ping timeout: 260 seconds]
kastaglio has joined #ocaml
Mirry has joined #ocaml
sfri has joined #ocaml
ggole__ has joined #ocaml
Haudegen has joined #ocaml
ggole_ has quit [Ping timeout: 276 seconds]
rand has joined #ocaml
t4nk671 has joined #ocaml
shinnya has quit [Ping timeout: 256 seconds]
NingaLeaf has quit [Quit: Leaving]
kushal has quit [Ping timeout: 264 seconds]
BitPuffin has quit [Ping timeout: 256 seconds]
mort___ has quit [Ping timeout: 250 seconds]
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
yallop has joined #ocaml
darkf has quit [Quit: Leaving]
kastaglio has quit [Ping timeout: 252 seconds]
Mirry has quit [Quit: leaving]
jonludlam has joined #ocaml
yomimono has quit [Ping timeout: 250 seconds]
ygrek has joined #ocaml
jonludlam has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
badon_ has joined #ocaml
badon has quit [Disconnected by services]
badon_ is now known as badon
_andre has quit [Quit: leaving]
govg has joined #ocaml
Mirry has joined #ocaml
inr_ has joined #ocaml
Madars has quit [Ping timeout: 250 seconds]
iZsh has quit [Excess Flood]
iZsh has joined #ocaml
artart78_ has joined #ocaml
Pepe__ has joined #ocaml
hnrgrgr_ has joined #ocaml
cody`_ has joined #ocaml
pootler__ has joined #ocaml
jerith_ has joined #ocaml
rossberg has quit [*.net *.split]
lostman_ has quit [*.net *.split]
cody` has quit [*.net *.split]
fluter has quit [*.net *.split]
pootler_ has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
rom1504 has quit [*.net *.split]
inr has quit [*.net *.split]
jerith has quit [*.net *.split]
hnrgrgr has quit [*.net *.split]
artart78 has quit [*.net *.split]
cody`_ is now known as cody`
lostman_ has joined #ocaml
pootler__ is now known as pootler_
ggole__ has quit []
rossberg has joined #ocaml
fluter has joined #ocaml
rom1504 has joined #ocaml
<t4nk671> can someone help me to implant a auxiliary function into a principal function ?
<blub> whats the function
struk|desk|away is now known as struk|desk2
Mirry has quit [Quit: leaving]
<t4nk671> ok so her are my functions that works ;
Mirry has joined #ocaml
<t4nk671> I want to include this : http://paste.isomorphis.me/ju2
<t4nk671> to this : print_assoc : string -> trie -> unit
<t4nk671> I did this : let print_assoc s t = parcours_aux (print_combine s ) (print_assoc s t);; , but there is an error at print_combine s
<t4nk671> Error: This expression has type int list -> unit but an expression was expected of type int list -> int list -> unit Type unit is not compatible with type int list -> unit , I undestand it , but how to solve it I can not just add a parameter to print_combinr her
<t4nk671> in what I did
cschneid has quit [Ping timeout: 250 seconds]
<lyxia> the problem seems to be that print_combine has too many arguments.
<lyxia> you defined print_aux here: "let print_aux print_combine keys tree"
cschneid has joined #ocaml
<lyxia> presumably print_combine is used as a function of two arguments, in the definition, which is missing in your paste.
<lyxia> oh wait no, it's just the indentation
<lyxia> so, as I said, it is used as a function which expects two arguments.
<lyxia> t4nk671: but when you write "parcours_aux (print_combine s)", you first apply print_combine to one argument, so the whole (print_combine s) becomes a function of one argument.
zpe has joined #ocaml
<t4nk671> yes but I can not added another argument to print_combine
<lyxia> I would suggest to remove the argument
<t4nk671> I can not remove the argument of print_combine because my auxiliary function will not work , actually it works
<lyxia> What?
<t4nk671> ok I have another question
<lyxia> BTW if you prefer asking it in French come ask it in ocaml-fr.
t4nk671 has quit [Quit: Page closed]
lokien_ has joined #ocaml
yomimono has joined #ocaml
mort___ has joined #ocaml
malc_ has joined #ocaml
ril has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
M-Illandan has quit [Ping timeout: 250 seconds]
bernardofpc has joined #ocaml
toolslive has joined #ocaml
ril has joined #ocaml
M-Illandan has joined #ocaml
Algebr` has joined #ocaml
mort___ has quit [Quit: Leaving.]
rand has quit [Quit: leaving]
Denommus has joined #ocaml
Denommus has quit [Client Quit]
M-Illandan has quit [Quit: node-irc says goodbye]
VeiledSpectre has joined #ocaml
Madars has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 250 seconds]
ely-se has joined #ocaml
ollehar has quit [Remote host closed the connection]
ollehar has joined #ocaml
willywonka has joined #ocaml
cschneid has quit [*.net *.split]
Stalkr_ has quit [*.net *.split]
blub has quit [*.net *.split]
lobo has quit [Quit: leaving]
cschneid has joined #ocaml
Stalkr_ has joined #ocaml
blub has joined #ocaml
cschneid has quit [Max SendQ exceeded]
cschneid has joined #ocaml
exm has joined #ocaml
larhat1 has joined #ocaml
jgjl has joined #ocaml
ely-se has quit [Quit: Leaving...]
willywonka has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ely-se has joined #ocaml
mcmillhj has joined #ocaml
zpe has quit [Remote host closed the connection]
mac10688 has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 246 seconds]
VeiledSpectre has quit [Quit: Leaving]
Denommus has joined #ocaml
tane has quit [Quit: Verlassend]
<edwin> hmm ocamlscript posted on reddit looks similar to what sgronblo was looking for earlier, although its not very clear to me what its goals are compared to js_of_ocaml
<cody`> It's older, I think
<Drup> it's not older at all
iorivur has joined #ocaml
<Algebr`> its newer, it looks like its a js backend to the compiler itself rather than jsoo approach of taking the bytecode -> js
malc_ has quit [Quit: leaving]
<cody`> Oh, huh
maker has joined #ocaml
lyxia has quit [Quit: WeeChat 1.3]
toolslive has quit [Ping timeout: 255 seconds]
lyxia has joined #ocaml
ely-se has quit [Quit: Leaving...]
Pepe__ is now known as Pepe_
lyxia has quit [Client Quit]
lyxia has joined #ocaml
lyxia has quit [Client Quit]
<cody`> Oh, I confused it with obrowser
<cody`> ocamlscript is extremely cool
lyxia has joined #ocaml
toolslive has joined #ocaml
d0nn1e has quit [Ping timeout: 246 seconds]
d0nn1e has joined #ocaml
pierpa has quit [Ping timeout: 256 seconds]
<c-c> wow, ocamlscript
pierpa has joined #ocaml
yomimono has quit [Quit: Leaving]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toolslive has quit [Ping timeout: 255 seconds]
ril has joined #ocaml
M-Illandan has joined #ocaml
damason has joined #ocaml
<seliopou_> i disappear for a couple weeks and another js compiler gets released
jgjl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seliopou_ is now known as seliopou