adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
yomimono has joined #ocaml
dhil has joined #ocaml
spew has joined #ocaml
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
achauvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhil has quit [Ping timeout: 246 seconds]
wtetzner has joined #ocaml
yomimono has quit [Ping timeout: 240 seconds]
kakadu has quit [Remote host closed the connection]
nenedhelp has joined #ocaml
segmond has joined #ocaml
mfp_ has quit [Ping timeout: 240 seconds]
<nenedhelp> is there an efficient way of recurring over a list in reverse?
<lyxia> yeah, you reverse it
ygrek has quit [Ping timeout: 260 seconds]
silver has quit [Read error: Connection reset by peer]
fre2 has quit [Quit: WeeChat 1.4]
ygrek has joined #ocaml
<average> no.
<average> walk_rev(x) { if(x->next){ walk_rev(x->next); }; do_stuff(x); };
<average> this is one way, you get them in reverse on your back from the recursive calls
<average> nenedhelp: ^^
<average> this was a snippet applicable to imperative languages ofc..
<average> idk ocaml so i have no idea how this translates to it
<average> i only now realize i'm in #ocaml..
ygrek has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
raph99 has joined #ocaml
spew has quit [Quit: foobar]
<raph99> Hey guys, lets say i have this type as a tree : type tree = Node of bool ref * (char * abre) list ref,
<raph99> any tips on how i would go on about comparing a list of char on if they are present in that tree ?
<raph99> i have tried a couple things so far and failed all of them..
ygrek has joined #ocaml
ygrek has quit [Quit: ygrek]
ygrek has joined #ocaml
nenedhelp has quit [Ping timeout: 260 seconds]
<tautologico> abre = arbre = tree>
<tautologico> ?
mengu has quit [Remote host closed the connection]
wtetzner has quit [Remote host closed the connection]
bungoman has joined #ocaml
philtor has quit [Ping timeout: 268 seconds]
<raph99> yea sorry arbre = tree
<raph99> im french ahah thats why
<raph99> i have so far tried to do this :
<raph99> 1. either create a recursive function and make it so i go from node to node (wich is where i dont know how to code it)
<raph99> or create a recursive function that goes char to char from the list of char i receive. im a bit confused on where to go about ti
<raph99> it*
mengu has joined #ocaml
raph99 has quit [Ping timeout: 260 seconds]
mengu has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
wtetzner has joined #ocaml
_whitelogger has joined #ocaml
wtetzner has quit [Remote host closed the connection]
BitPuffin|osx has quit [Ping timeout: 264 seconds]
cbot has quit [Quit: Leaving]
FreeBirdLjj has joined #ocaml
Simn has joined #ocaml
vtomole has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 260 seconds]
AlexDenisov has joined #ocaml
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Ping timeout: 258 seconds]
vtomole has quit [Ping timeout: 260 seconds]
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yomimono has joined #ocaml
MercurialAlchemi has joined #ocaml
_whitelogger has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
average has quit [Quit: leaving]
mengu has joined #ocaml
Mercuria1Alchemi has joined #ocaml
freusque has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
frefity has quit [Ping timeout: 240 seconds]
p_nathan has joined #ocaml
freusque has quit [Quit: WeeChat 1.7]
freusque has joined #ocaml
achauvin has joined #ocaml
frefity has joined #ocaml
jnavila has joined #ocaml
achauvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
achauvin has joined #ocaml
achauvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
achauvin has joined #ocaml
AlexDenisov has joined #ocaml
rossberg has quit [Ping timeout: 264 seconds]
<companion_cube> so, french person asking questions at 5AM ‽
minn has joined #ocaml
rossberg has joined #ocaml
rpip has joined #ocaml
octachron has joined #ocaml
<achauvin> companion_cube, some late assignment due maybe? :-)
frefity has quit [Ping timeout: 240 seconds]
larhat has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
<companion_cube> heh
frefity has joined #ocaml
AlexDenisov has joined #ocaml
minn has quit [Ping timeout: 260 seconds]
zpe has joined #ocaml
mfp_ has joined #ocaml
achauvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muzer has quit [Ping timeout: 260 seconds]
Onemorenickname has joined #ocaml
achauvin has joined #ocaml
Muzer has joined #ocaml
ygrek has quit [Ping timeout: 268 seconds]
freehck has joined #ocaml
achauvin has quit [Max SendQ exceeded]
minn has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p_nathan has quit [Ping timeout: 240 seconds]
AlexDenisov has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
orbifx has joined #ocaml
Gk-1wm-su has joined #ocaml
silver has joined #ocaml
Gk-1wm-su has quit [K-Lined]
Jaxan_ is now known as Jaxan
freechips has quit [Ping timeout: 264 seconds]
freusque has quit [Quit: WeeChat 1.7]
freechips has joined #ocaml
kakadu has joined #ocaml
kakadu has quit [Client Quit]
yomimono has quit [Ping timeout: 246 seconds]
snowcrshd has joined #ocaml
minn has quit [Ping timeout: 260 seconds]
_andre has joined #ocaml
Onemorenickname has quit [Ping timeout: 260 seconds]
freusque has joined #ocaml
freusque has quit [Quit: WeeChat 1.7]
freusque has joined #ocaml
Onemorenickname has joined #ocaml
shinnya has joined #ocaml
mengu has quit [Quit: Leaving...]
raph99 has joined #ocaml
BitPuffin|osx has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
Onemorenickname has joined #ocaml
sfri has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ocaml
sz0 has joined #ocaml
sfri has joined #ocaml
Onemorenickname_ has joined #ocaml
Onemorenickname has quit [Ping timeout: 260 seconds]
maattdd_ has joined #ocaml
maattdd__ has joined #ocaml
maattdd has quit [Ping timeout: 264 seconds]
maattdd_ has quit [Ping timeout: 246 seconds]
<gjaldon__> trying to rebuild an ocaml project I wroked on a few weeks ago but I get an error now saying `package 'js_of_ocaml.tyxml' could not be found`
<gjaldon__> any idea where `js_of_ocaml.tyxml` is? i already installed both js_of_ocaml and tyxml
sepp2k has joined #ocaml
<gjaldon__> searched opam and there doesn't seem to be a separate js_of_ocaml-tyxml package
<flux> gjaldon__, try to recompile js_of_ocaml?
<flux> I think it should happen automatically, but I guess it didn't in this case
<flux> ..unless you're missing some other dependency on js_of_ocaml.tyxml
<gjaldon__> ok trying to do a `opam reinstall js_of_ocaml`
<gjaldon__> still doesn't work
<Drup> gjaldon__: install reactiveData
<gjaldon__> ok
ryanartecona has joined #ocaml
<flux> would it be possible to implement opam install js_of_ocaml.tyxml in opam?
<flux> I guess it doesn't know enough at the moment
<Drup> yeah, we should probably add a virtual package for that
<gjaldon__> still doesn't work after installing reactiveData
<flux> ..and then reinstalling js_of_ocaml?
sh0t has joined #ocaml
<gjaldon__> looks like it already recompled js_of_ocaml when I installed reactiveData
<gjaldon__> will try to reinstall it
<flux> oh, well, then carry on giving advice Drup :-)
<Drup> you don't need to reinstall
<Drup> you just need js_of_ocaml with tyxml and reactiveData install, and it should be there automatically
yomimono has joined #ocaml
<gjaldon__> ocamlfind still can't find `js_of_ocaml.tyxml`
<gjaldon__> is there addtional setup that needs to be done for ocamlfind after installing opam?
<def`> what is th result of "which ocamlfind" ?
<gjaldon__> ~/.opam/4.04.0/bin/ocamlfind
<gjaldon__> `/home/gjaldon/.opam/4.04.0/bin/ocamlfind`
<def`> and that matches your current opam switch?
<gjaldon__> no it doesn't
<gjaldon__> :D
<gjaldon__> how to fix that?
<flux> eval $(opam config env)
<gjaldon__> ahh yess that looks familiar
<gjaldon__> should I add that to my bash_profile?
<flux> if you forget it, if you remember "opam switch", then it will tell you it :)
yomimono has quit [Ping timeout: 258 seconds]
<flux> opam setup has a phase where it adds the essential stuff there.. it has a script you can run for setup, but I don't remember it does anything else but that.
<gjaldon__> ill have to check but I think I didn't have to manually do 'eval `opam config env`' in my mac.
<gjaldon__> thanks a lot for the help def` Drup and flux !
<def`> :)
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yomimono has joined #ocaml
AlexDenisov has joined #ocaml
agarwal1975 has joined #ocaml
Onemorenickname_ has quit [Ping timeout: 240 seconds]
<rgrinberg> Is there any work around for https://github.com/ocaml/ocamlbuild/issues/229 ?
<rgrinberg> I don't care how ugly...
yomimono has quit [Ping timeout: 240 seconds]
yomimono has joined #ocaml
Onemorenickname has joined #ocaml
yomimono has quit [Ping timeout: 268 seconds]
olle has joined #ocaml
freechips has quit [Ping timeout: 246 seconds]
spew has joined #ocaml
jabroney has joined #ocaml
al-damiri has joined #ocaml
rkeene has joined #ocaml
<rkeene> I'm trying to build the latest stable release of ocaml (v4.04.00) and when I do "make world" (after a successful ./configure) it complains: Makefile:780: .depend: No such file or directory
<rkeene> INSTALL.adoc provides no clues.
<tautologico> is this build from opam?
<rkeene> Are you asking me ? I downloaded the tarball and ran "./configure ..." and "make world", as documented in INSTALL.adoc
<tautologico> do you need to build from sources?
<rkeene> What else would I build from ?
<tautologico> right, sorry for asking
ryanartecona has quit [Quit: ryanartecona]
<rkeene> ?
wtetzner has joined #ocaml
maattdd has joined #ocaml
maattdd__ has quit [Ping timeout: 268 seconds]
freechips has joined #ocaml
maattdd_ has joined #ocaml
annoymouse has joined #ocaml
<octachron> rkeene, this is strange: the ".depend" file is present in the archive, have you checked that is still exists in your file system?
<rkeene> octachron, It didn't exist for me
maattdd has quit [Ping timeout: 258 seconds]
<rkeene> https://github.com/ocaml/ocaml/archive/4.04.0.tar.gz with SHA256 03e49d09d5a509216ca0cc8fccd10df3ad9dd441d7633e89974a74e149be3c51
wtetzner has quit [Ping timeout: 240 seconds]
hannes` is now known as hannes
<octachron> reener, after checking again, the ".depend' file does exist in the archive that you linked (with the right checksum)
<rkeene> Yes, I see -- I was mv *'ing without dotglob, trying again
<rkeene> That did it, thanks
sz0 has quit [Quit: Connection closed for inactivity]
ryanartecona has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<octachron> rgrinberg, building separately the packed library might be the more conservative option
<freehck> people, i'm reading 19th chapter of RWO about CFFI. Can't understand if there's some way to make int of time_t. Do somebody know how to do it?
AlexDenisov has joined #ocaml
<struk|desk> freehck: its lossy : Time.now() |> Time.to_float |> Int.of_float; I recommend using the (3rd party) calendar module for advanced time stuff btw
yomimono has joined #ocaml
wtetzner has joined #ocaml
<freehck> struk|desk: I really don't need specifically time. I'm interested in learning how to convert external types into ocaml ones.
freusque has quit [Quit: WeeChat 1.7]
freusque has joined #ocaml
frefity has quit [Ping timeout: 260 seconds]
<struk|desk> freehck: if you declare "module Time : sig type t val of_int : int -> t end = struct type t = int let of_int t = t end" then the type of Time.t is opaque even if it is actually an int. In general, ocaml "converts" types with variant constructors or "of_foo" functions provided in the module to convert from foo to t
freusque has quit [Client Quit]
shinnya has quit [Ping timeout: 258 seconds]
freusque has joined #ocaml
frefity has joined #ocaml
<freehck> Ahem. struk|desk, I'm learning to use OCaml's cffi. *CFFI*. There's a C type time_t which is defined somewhere in <ctime>. I ask how I can convert the value of external type time_t, which is returned by external C function, into int. time_t here is just an example.
raph99 has quit [Quit: Page closed]
antoine___ has joined #ocaml
<octachron> freehck, without using the ctype library?
<octachron> freehck, using the raw CFFI, since time_t can be a 64 bits integer, you need to represent it as an Int64.t
philtor has joined #ocaml
<freehck> octachron: I just can't understand what I can do with time_t. I've made `time' ()` function of type `unit -> time_t`. time_t is defined in PosixTypes module. And it seems to me like I can't do anything with time_t except f.e. to use it as a parameter for another C function.
copy` has joined #ocaml
<octachron> freehck, you are right, if you only have an "unit -> t" function, the type t is just a black box that you cannot use to do anything
mattg has joined #ocaml
<octachron> freehck, this is why the next function that RWO define is difftime which allow you to manipulate this black box and extract back a type that you can manipulate
Guest11112 has joined #ocaml
<freehck> octachron: ah, thank you. Eventually got this. :)
yomimono has quit [Ping timeout: 240 seconds]
fre2 has joined #ocaml
Exagone313 has quit [Ping timeout: 240 seconds]
Exagone313 has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 264 seconds]
Guest11112 has quit [Remote host closed the connection]
ygrek has joined #ocaml
fre2 has quit [Ping timeout: 260 seconds]
yomimono has joined #ocaml
jnavila has quit [Quit: It was time]
wtetzner has quit [Ping timeout: 260 seconds]
olle has quit [Quit: olle]
antoine___ has quit [Ping timeout: 260 seconds]
yomimono has quit [Ping timeout: 246 seconds]
<rgrinberg> octachron: so using something like make to build the packed lib?
olle has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
jmasseo_ is now known as jmasseo
maattdd has joined #ocaml
maattdd_ has quit [Ping timeout: 240 seconds]
ryanartecona has joined #ocaml
<octachron> rgrinberg, yes, for instance make + ocamlbuild in a subfolder would circumvent the global nature of -I
<rgrinberg> octachron: won't that be hard to do because telling Make to do builds in _build might be non trivial?
maattdd_ has joined #ocaml
<companion_cube> the only way I succeeded in using ocamlbuild+packs was by using oasis…
<rgrinberg> companion_cube: this limitation is unfortunately inherited in oasis
<companion_cube> hum, with oasis it works pretty well for "simple" packs
<companion_cube> (they need to live in distinct directories)
maattdd has quit [Ping timeout: 260 seconds]
zpe has quit [Remote host closed the connection]
<rgrinberg> but the issue is that the modules that are part of a pack are being leaked outside the pack by oasis
<rgrinberg> E.g. try creating an oasis lib with a pack like Xxx.{CCList,B,C} and accessing CCList from containers in a sub library that also uses Xxx
chetshah has joined #ocaml
<companion_cube> ah yeah, one needs to be careful about that :/
<companion_cube> the day we have a build system that doesn't suck, I will consider switching…
<octachron> rgrinberg, out-of-tree makefile are indeed painful, but it is not really necessary, the main difficulty would be to convince the main ocamlbuild to use the packed cmo/cmi
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larhat has quit [Quit: Leaving.]
<octachron> it should be doable to add a rule in the main myocamlbuild.ml to build the packed cmo/cmi by simply copying them from the pack subdirectory
<octachron> (on the more daring side, using module aliases + codept should just work)
<rgrinberg> how does codept solve this problem on its own? It isn't just a problem of dependency analysis, it's just that -I is too heavy weight
<rgrinberg> Unless you imply also prefixing your module aliases with pack__, but that doesn't seem like something you can do without changing ocamlbuild
jnavila has joined #ocaml
maattdd_ has quit [Quit: WeeChat 1.7]
maattdd has joined #ocaml
<octachron> rgrinberg, I was unclear: you can implement the prefixing + atlas module either on myocamlbuild.ml or by hand, then codept is just useful to avoid the erroneous cyclic dependency between the atlas and the submodule
<rgrinberg> Ah but tweaking the dependencies is the trivial bit with ocamlbuild I bet. Just call non_dependnecy
<rgrinberg> But doing the prefixing is probably quite hard
<octachron> (and to disambiguate between the packed submodule and the external library module)
annoymouse has quit [Quit: Connection closed for inactivity]
<octachron> My experience unfortunately agrees that doing the prefixing in ocamlbuild is painful
jnavila has quit [Quit: It was time]
yomimono has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
chetshah has quit [Ping timeout: 260 seconds]
olle has quit [Quit: olle]
BitPuffin|osx has quit [Remote host closed the connection]
antoine___ has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
average has joined #ocaml
yomimono has quit [Ping timeout: 260 seconds]
maattdd has quit [Quit: WeeChat 1.7]
maattdd has joined #ocaml
philtor has quit [Ping timeout: 268 seconds]
dch_ has joined #ocaml
BitPuffin|osx has joined #ocaml
olle has joined #ocaml
philtor has joined #ocaml
ygrek has joined #ocaml
orbifx has quit [Ping timeout: 256 seconds]
Simn has quit [Quit: Leaving]
fre2 has joined #ocaml
jnavila has joined #ocaml
rkeene has left #ocaml [#ocaml]
ryanartecona has quit [Quit: ryanartecona]
olle has quit [Quit: olle]
maattdd_ has joined #ocaml
maattdd_ has quit [Client Quit]
maattdd_ has joined #ocaml
larhat has joined #ocaml
antoine___ has quit [Quit: Page closed]
antoine___ has joined #ocaml
<antoine___> is it possible in ocaml (im new) to make it so a function returns a custom type of list that another function would use ?
<antoine___> as in : bla bla iterating trought this list = match saidList with
<antoine___> | x::y -> if (what the other functions returns == this) then addsomething to a list
mengu has joined #ocaml
<antoine___> is it something doable ?
TheLemonMan has joined #ocaml
<lyxia> i didn't understand
<octachron> antoine___, function can return list, yes; list can be used as function argument too; but it might help to explicit what you are trying to achieve
<antoine___> Alright. Thank you for the help. More info : i have list that contains chars and i have a tree that contains nodes. The tree is made like this : Node of bool ref ∗ (char ∗ tree ) list ref. What i have to do (this is an assignement btw) is to create a function that returns 2 things. 1. the list of the char that are not in the tree but are in the list. 2. the list of the chars that are in the tree and in the list.
<antoine___> what i was thinking of doing is the following : let rec Search tree listChar = match listChar with | [] -> ([],[]) | head::tail -> if (here i would call another function that returns a node of the tree and the node's char) == head then (*add to the CharisPresentList) else (*add to the charIsNotPresentList)
<antoine___> the part where im stuck is the "if (here i would call another function that returns a node of the tree and the node's char)"
<octachron> antoine___, have you tried pattern matching on the tree?
yomimono has joined #ocaml
<octachron> antoine___, minor points: Ocaml is capitalisation sensitive: function name should start with a lower-case letter; and equality testing is done with "=" not "=="
<antoine___> i have tried let search tree listChar = let rec patternTree tree ListChar = match tree with | Node(boolean,{contents = (charOftree,h)::t}) -> if (charOftree == ONE LETTER OF THE LIST) then (*add to the exist list*) else IDK..
<antoine___> oh sorry i will correct the capital and i did not know about = vs "==" thank you
fds_ is now known as fds
fds has quit [Changing host]
fds has joined #ocaml
ryanartecona has joined #ocaml
<octachron> (on a side note "==" is physical equality which come with some complications )
kakadu has joined #ocaml
<antoine___> oh i see.
<antoine___> what if i do
<antoine___> how could i pass only one letter of the list to that search function so it has time to check if it finds it in the tree ?
AlexDenisov has joined #ocaml
yomimono has quit [Ping timeout: 246 seconds]
orbifx has joined #ocaml
<octachron> antoine___, just focus on the small task at hand: consider a function search: char -> tree -> boolean that finds out if the character is present in the tree
arj has joined #ocaml
orbifx has quit [Ping timeout: 260 seconds]
ocabot_ has quit [Remote host closed the connection]
ocabot_ has joined #ocaml
maattdd_ has quit [Quit: WeeChat 1.5]
maattdd_ has joined #ocaml
maattdd_ has quit [Client Quit]
<antoine___> octachron good idea
<antoine___> i did this
<antoine___> let rec searchsmall tree char1 = match tree with | Node(boolean,{contents = (charOftree,h)::t}) -> if (charOftree = char1) then true else false;;
<antoine___> i think it should work
maattdd_ has joined #ocaml
AlexDeni_ has joined #ocaml
dch_ has quit [Quit: ZZ]
<antoine___> i have 1 problem now. i dont know how to create a var that has as a type my custom type tree
AlexDenisov has quit [Read error: Connection reset by peer]
<octachron> antoine___, what should happen if char1 is not the character of the first branch of the tree?
<antoine___> if it is present im supposed to add it to a list called l1 and return it. if it is not im supposed to add it to a list l2 and also return it after the other list
<antoine___> <octachron>
<octachron> antoine___, but you want to test if the character is present in the whole tree, not only in the first node of first branch
<antoine___> <octachron> yes exactly
<octachron> this is not what your function is doing, and the fact that currently your function is not recursive should be a hint
<antoine___> oh...
<antoine___> give me a min
<antoine___> ill try something
<antoine___> let rec searchsmall tree char1 = match tree with | Node(boolean,{contents = (charOftree,h)::t}) -> if (charOftree = char1) then true else searchsmall h::t char1;;
<antoine___> would that work better
<antoine___> man i am so confused on how the nodes work
<antoine___> the custom type is weird. I get that it contains a bool , a char and then a list (the rest of the branch ?) but how can i pass the rest of the branch ..
<octachron> antoine___, you should consider a branch at a time: if you have already found the character in the first branch you can stop, otherwise you need to look at the rest of the tree
<antoine___> and with the else searchsmall h::t char 1 wouldnt i be doing that ?
<antoine___> and octachron while you are there and being helpful is h::t the right way to call the rest of the branch in my situation ?
<octachron> antoine___, this is the right way. You should maybe try to construct few tree first
<antoine___> i actually for the moment dont have the function to create a tree. I only have the function to create a branch (wich works) but not a tree...
<octachron> "searchsmall h::t char 1"< can not work: it "searchmall h" is a function that take a char and looks for it char in h which is added to a mysterious "t char1" list
<antoine___> but Node(boolean,{contents = (charOftree,h)::t})
<antoine___> is the way i found to access the contents of my node
<antoine___> so the way to access the rest of the branch is not this ?
<octachron> antoine___, a tree is simply something like Node( ref false, ref []) or Node(ref false, ref [ Node(ref false, ref[] )] )
<octachron> antoine___, the rest of the branch has been bound to the variable t
<antoine___> but in the case of this assignement type tree = Node of bool ref * (char * arbre) list ref
<antoine___> does it change anything ?
<antoine___> or its still like you said
<companion_cube> https://github.com/ocaml/opam-repository/pull/8635 @ calculon people
<antoine___> ohhh i think youre right
<antoine___> <octachron>
<antoine___> i think t is the rest of the branch even with my weird cutom type
<antoine___> youre right.
Xadnem has joined #ocaml
arj has quit [Quit: Leaving.]
orbifx has joined #ocaml
snowcrshd has quit [Remote host closed the connection]
orbifx has quit [Ping timeout: 264 seconds]
Xadnem has quit [Quit: leaving]
tane has joined #ocaml
philtor has quit [Ping timeout: 260 seconds]
philtor has joined #ocaml
_andre has quit [Quit: leaving]
rightfold has joined #ocaml
<rightfold> The website says I can install OCaml with OPAM. It lists how to install OPAM, but not how to install OCaml with OPAM. Moreover, after installing OPAM, opam init fails because there is no OCaml compiler. "[ERROR] No OCaml compiler found in path."
<rightfold> Can I install an OCaml compiler with OPAM?
<octachron> rightfold, have you tried opam switch 4.04.0 (or your prefered version of the compiler)?
<rightfold> octachron: opam switch tells me to run opam init first
<rightfold> Ah, `opam init --comp=4.04.0` does work, thanks
spew has quit [Read error: Connection reset by peer]
freusque has quit [Ping timeout: 260 seconds]
freusque has joined #ocaml
antoine___ has quit [Ping timeout: 260 seconds]
orbifx has joined #ocaml
wtetzner has joined #ocaml
octachron has quit [Quit: Leaving]
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbifx has quit [Ping timeout: 260 seconds]
mrgrieves has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
gasche has joined #ocaml
gallais has quit [Ping timeout: 264 seconds]
tane has quit [Ping timeout: 260 seconds]
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
gallais has joined #ocaml
jnavila has quit [Remote host closed the connection]
fraggle-boate has quit [Ping timeout: 240 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
minn has joined #ocaml
orbifx has joined #ocaml
jabroney has quit [Quit: Leaving.]
larhat has quit [Quit: Leaving.]
orbifx has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Quit: ryanartecona]
maattdd_ has quit [Ping timeout: 260 seconds]
spew has joined #ocaml
kakadu has quit [Remote host closed the connection]
agarwal1975 has quit [Ping timeout: 268 seconds]
minn has quit [Ping timeout: 264 seconds]
shinnya has joined #ocaml
ocaml783 has joined #ocaml