companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Serpent7776 has quit [Ping timeout: 268 seconds]
Tuplanolla has quit [Quit: Leaving.]
Haudegen has quit [Ping timeout: 268 seconds]
spip has quit [Quit: Konversation terminated!]
rf has quit [Remote host closed the connection]
sagax has joined #ocaml
sagax has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
chrisz has quit [Ping timeout: 246 seconds]
chrisz has joined #ocaml
jsoo_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
jsoo has joined #ocaml
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #ocaml
trev has joined #ocaml
mbuf has joined #ocaml
Haudegen has joined #ocaml
John_Ivan has quit [Ping timeout: 265 seconds]
bgs has quit [Remote host closed the connection]
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
Anarchos has joined #ocaml
bartholin has quit [Quit: Leaving]
Anarchos has quit [Ping timeout: 276 seconds]
olle has joined #ocaml
spip has joined #ocaml
Anarchos has joined #ocaml
wingsorc has quit [Ping timeout: 250 seconds]
John_Ivan has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
Anarchos has quit [Ping timeout: 276 seconds]
bgs has joined #ocaml
contificate has joined #ocaml
Haudegen has joined #ocaml
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> batteries' IntMap?
<adrien> https://opam.ocaml.org/packages/interval-map/ is the one that comes the closest but it doesn't merge ranges
<adrien> possible, let me check
<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]