sparogy has quit [Remote host closed the connection]
noonien has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
rf has joined #ocaml
sparogy has joined #ocaml
sparogy has quit [Remote host closed the connection]
sparogy has joined #ocaml
<adrien>
I'm looking for a range/interval map but I'm not having much success on opam; basically I'm looking for something that lets me map [1;8] to "foo" and if I then add a mapping from [5;15] to "foo", the mapping becomes from [1;15] to "foo" and I want to be able to query for, say, 12
<companion_cube>
(iirc there's something like that in batteries)
sparogy has quit [Remote host closed the connection]
sparogy has joined #ocaml
sparogy has quit [Remote host closed the connection]
sparogy has joined #ocaml
<adrien>
it seems to be what I'm after, thanks!
<adrien>
there are also a couple implementation of DIET but these are sets, not maps
<adrien>
oh and it's IMap
<adrien>
(the author list of batteries brought back some memorie)
<adrien>
s
anpad has quit [Read error: Connection reset by peer]
<adrien>
does what I need a merges adjacent ranges properly :)
<adrien>
I might use only a set actually since it doesn't let me define how to split range maps: [5;20] maps to "foo", I then a mapping from [10;15] to "bar" but that simply cuts the first mapping in two and there's no way have [10;15] map to "foo" :: "bar :: []
<adrien>
(which I don't think is easy to implement btw)
Tuplanolla has joined #ocaml
contificate has quit [Quit: WeeChat 3.8]
Haudegen has quit [Quit: Bin weg.]
slothby has joined #ocaml
mbuf has quit [Quit: Leaving]
John_Ivan has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
jumpnbrownweasel has quit [Remote host closed the connection]
jumpnbrownweasel has joined #ocaml
John_Ivan has joined #ocaml
<discocaml>
<Leul> yo
technomancy has left #ocaml [ERC (IRC client for Emacs 26.1.50)]
szkl has joined #ocaml
bartholin has joined #ocaml
wingsorc has joined #ocaml
<adrien>
and, hmmm, I'm unable to find a packaged TSP library which I find difficult to believe
azimut has quit [Ping timeout: 255 seconds]
Stumpfenstiel has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Quit: Leaving]
trev has quit [Remote host closed the connection]
bgs has quit [Remote host closed the connection]
Stumpfenstiel has quit [Quit: No Ping reply in 180 seconds.]
Stumpfenstiel has joined #ocaml
bartholin has quit [Quit: Leaving]
olle has quit [Ping timeout: 246 seconds]
motherfsck has quit [Remote host closed the connection]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
wingsorc has quit [Remote host closed the connection]
motherfsck has joined #ocaml
wingsorc has joined #ocaml
Stumpfenstiel has quit [Ping timeout: 250 seconds]