zipper has quit [Read error: Connection reset by peer]
YuGiOhJCJ has joined #racket
ziyourenxiang has quit [Ping timeout: 245 seconds]
Sgeo has joined #racket
Sgeo_ has quit [Ping timeout: 252 seconds]
ym555 has joined #racket
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #racket
<NeoHamled>
Does racket have in the built-in collections, any type which represents a range not for iteration, but for checking whether the given range contains specific values? I know this would be easy enough to write for numeric ranges (which is my use case) but I wasn't sure if there exists something for that already
pera has joined #racket
Lowl3v3l has joined #racket
euhmeuh has left #racket [#racket]
<jcowan>
NeoHamled: Not that I know of. However, it would be better to make such ranges (which I call "indefinite ranges") generic by passing in = and < to the constructor. If you put something together like that, I would be very interested and it would make a great SRFI.
<NeoHamled>
Is that something you've seen in other languages? I think I'd be curious about researching a generic implementation, but for the immediate purposes I can do some very basic code :)
jokul has quit [Ping timeout: 272 seconds]
vraid has quit [Quit: Leaving]
<jcowan>
No, but there is a well-known algebra of intervals, such as that the sum of two intervals is the interval from the sum of the low ends to the sum of the high ends. There are also a very nice set of relational operators, since intervals aren't covered by simple <, =, and >.
<jcowan>
greghendershott: That's an enumerable interval, what Python calls a Range.
<jcowan>
IIUC, NeoHamled is talking about indefinite intervals, where we only know containment, not adjacency.
<greghendershott>
OK, sorry if N/A. Sometimes I don't understand exactly what people want, I point out data/*, and it turns out they wanted something there.
<greghendershott>
So I figured I'd play one of my golden oldies. :)
Arcaelyx_ has joined #racket
* greghendershott
is actually an IRC bot
<selimcan>
lol
<selimcan>
a pretty good bot then
Arcaelyx_ is now known as Arcaelyx
* jcowan
chuckles
<NeoHamled>
Thank you both for the additional reading :) I'm definitely less knowledgeable about both the math systems/theory and the variety of available data structures so this helps!
selimcan has quit [Quit: Leaving]
selimcan has joined #racket
davidl has quit [Quit: WeeChat 2.1]
davidl has joined #racket
jokul has joined #racket
sauvin has quit [Ping timeout: 252 seconds]
ym555 has quit [Ping timeout: 252 seconds]
johnjay has quit [Remote host closed the connection]
johnjay has joined #racket
ym555 has joined #racket
pera has quit [Ping timeout: 245 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pera has joined #racket
selimcan has quit [Quit: Leaving]
dharog has joined #racket
endformationage has joined #racket
dharog has quit [Ping timeout: 252 seconds]
Lowl3v3l has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 268 seconds]
dharog has joined #racket
davidl has quit [Quit: WeeChat 2.1]
sagax has quit [Ping timeout: 252 seconds]
YuGiOhJCJ has quit [Remote host closed the connection]