<pedlar>
the NodeCollection record doesn't have the QuadTreeNode available
<Smerdyakov>
pedlar, what source are you using to learn OCaml?
<pedlar>
its f# really
<pedlar>
howw would you do something like that in ocaml
<vixey>
pedlar, by learning ocaml
<vixey>
pedlar, by learning ocaml
<pedlar>
thanks for the useful response
<vixey>
pedlar, then typing the obvious thing which is equivalent
alexyk_ has joined #ocaml
<Smerdyakov>
pedlar, what source are you using to learn F#?
<pedlar>
expert f#
<Smerdyakov>
pedlar, and that book doesn't cover mutually-recursive types?
<mrvn>
type nodeCollection = {ne:quadTreeNode; nw:quadTreeNode; se:quadTreeNode; sw:quadTreeNode} and quadTreeNode = {nodes:nodeCollection; key:int; value:int}
alexyk_ has quit [Client Quit]
<vixey>
pedlar, go to #F# then
<pedlar>
wow, you really make me want to learn ocaml man
<mrvn>
pedlar: Problem is that that type is endless. You can never create a valid instance of it.
<mrvn>
pedlar: you could use something like this: type quadTree = Leaf of point * value | Node of point * quadTree * quadTree * quadTree * quadTree
<mrvn>
Or make nodes a NodeCollection option
<pedlar>
hrm, ty
<Smerdyakov>
pedlar, are you trying to write this program before reading a part of F# that explains how to do such things?
pedlar has quit [Read error: 54 (Connection reset by peer)]
<mrvn>
Smerdyakov: Weeks of programming can save you days of learning. :)
<Smerdyakov>
mrvn, I don't think I get your point.
pedlar has joined #ocaml
<Smerdyakov>
pedlar, are you trying to write this program before reading a part of _Expert_F#_ that explains how to do such things?
<mrvn>
Smerdyakov: there is an "do before thinking" approach to writing software.
<Smerdyakov>
mrvn, and are you saying that you approve or disapprove of it?
<mrvn>
I understand it.
<vixey>
mrvn, There is a study of hitting onesself on the head as hard as possible with a frying pan
<vixey>
mrvn, we call it CS here
<mrvn>
vixey: does it pay good?
<pedlar>
i thought i'd read the right parts
alexyk has quit [Read error: 110 (Connection timed out)]
<Smerdyakov>
pedlar, if you don't know how to do something, and you haven't finished the book yet, it's usually worth giving up and going back to reading.
blando__ has joined #ocaml
pedlar has quit [Read error: 104 (Connection reset by peer)]
mbishop_ has quit [Read error: 110 (Connection timed out)]
mbishop_ has joined #ocaml
pedlar has joined #ocaml
seafood has joined #ocaml
pedlar has quit [Read error: 54 (Connection reset by peer)]
munificent has joined #ocaml
blando__ has left #ocaml []
pedlar has joined #ocaml
mbishop__ has joined #ocaml
mbishop_ has quit [Read error: 60 (Operation timed out)]
pedlar has quit [Read error: 54 (Connection reset by peer)]
pedlar has joined #ocaml
pedlar has quit [Read error: 104 (Connection reset by peer)]
pedlar has joined #ocaml
pedlar has quit [Read error: 104 (Connection reset by peer)]
vixey has quit [Read error: 104 (Connection reset by peer)]
pedlar has joined #ocaml
pedlar has quit [Read error: 104 (Connection reset by peer)]
mbishop_ has joined #ocaml
mbishop__ has quit [Read error: 110 (Connection timed out)]
pedlar has joined #ocaml
pedlar has quit [Read error: 104 (Connection reset by peer)]
seafood has quit []
vixey has joined #ocaml
munificent has quit []
johnnowak has quit []
mbishop__ has joined #ocaml
mbishop_ has quit [Read error: 110 (Connection timed out)]
ygrek has quit [Remote closed the connection]
johnnowak has joined #ocaml
alexyk has joined #ocaml
mbishop__ has quit [Read error: 110 (Connection timed out)]