If you care about performance, using a vector would be better.
it would have to use a different algorith, though
At the moment performance is not one of my priorities
It would make more sense to make hit a method, right?
White_Flame: Right, you wouldn't use DELETE.
karlosz has quit [Quit: karlosz]
you could add a count to the class to cache the length, so you don't have to recompute it, which would be a fairly easy optimizatin
tempate: It would be a generic function, but it might be overkill for this problem.
chewbranca has quit [Read error: Connection reset by peer]
chewbranca has joined #lisp
what are the differences between C++ classes and Lisp's?
White_Flame: oh, right. Let me try to do that.
tempate: Common Lisp classes don't have methods in them. Encapsulation is accomplished with an orthogonal mechanism known as "packages".
makomo has joined #lisp
(and packages aren't really "encapsulation" because you can always still poke into them; there's no real data hiding in CL, besides closures (and you can use implementation tools to poke into those, too))
GuerrillaMonkey has quit [Ping timeout: 240 seconds]
shka_ has quit [Ping timeout: 240 seconds]
EvW has quit [Ping timeout: 240 seconds]
v1sage has quit [Quit: v1sage]
akhetopnu has joined #lisp
hello. has anyone here tried to use websocket-driver and send messages to clients from a different thread? It doesn't seem to work. I'm not sure if I'm going crazy or if I'm doing something wrong...
GuerrillaMonkey has joined #lisp
Jesin has quit [Quit: Leaving]
terpri has joined #lisp
Involuntary has quit [Ping timeout: 260 seconds]
Jesin has joined #lisp
Aruseus has joined #lisp
gendarme has quit [Remote host closed the connection]
gendarme has joined #lisp
mathrick_ has joined #lisp
ravndal has quit [Quit: WeeChat 2.7]
GuerrillaMonkey has quit [Remote host closed the connection]