hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
yxhuvud has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<FromGitter>
<azurelmao> Is there a size-restricted queue in crystal or do I have to make my own with Deque?
<FromGitter>
<Blacksmoke16> restricted in what case, like when you add something new and it's full, last item drops off?
<FromGitter>
<azurelmao> exactly that
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<FromGitter>
<Blacksmoke16> nothing built in like that afaik
jmdaemon has joined #crystal-lang
_ht has joined #crystal-lang
<FromGitter>
<RespiteSage> If you know the size at compile-time, it probably wouldn't be too hard to write a circular buffer using `StaticArray` under the hood.
<FromGitter>
<Blacksmoke16> deque already implements a circular buffer
<FromGitter>
<Blacksmoke16> but doesnt handle popping off extra values