Well, buttsorting an anus is a bit like sorting an AVL tree.
Name:
Anonymous2009-11-24 5:43
HAXUS THE EMAIL
Name:
Anonymous2009-11-24 5:44
FUCK the Haxus meme just got haxed.
Name:
Anonymous2009-11-24 6:33
h
Name:
Anonymous2009-11-24 6:59
>>173
Don't you hate the kind of trolls that troll a board simply by putting technical terms together? also every idiot that'll jump in and say "but I know how to sort AVL trees!" AVL trees do NOT get sorted. They are self balanced you you!
>>177
How old are you 12? Its either that or you're clearly retarded either way. I'd rather be 5ft 6 than be as retarded as you.
Name:
Anonymous2009-11-24 10:13
>>177
Balancing involves sorting... they are just refering to being able to properly implement an AVL tree including the balancing (or sorting) aspects.
It's obvious to me, you must just have assburgers.
(defun cycle-fns (&rest functions)
(let* ((n (length functions))
(p 0)
(array (loop
with a = (make-array (list n)
:element-type 'function
:initial-element #'identity)
for function in functions
for i from 0 to (1- n)
do (setf (aref a i) function)
finally (return a))))
(lambda (&rest args)
(prog1
(apply (aref array p) args)
(setf p (mod (1+ p) n))))))
(defun bbcode (tag)
(lambda (i)
(format nil "[~A]~A[/~A]" tag i tag)))
>>195
Your cycle-fns function seems unnecessarily complicated, why not just use a circular list + pop or something like:
(let ((ht (make-hash-table :test #'equal)))
(defun cycle (&rest args)
(symbol-macrolet ((h (gethash args ht)))
(unless h (setf h args))
(pop h))))
>>197
stop using symbol-macrolet like a C preprocessor.
Name:
1972009-11-26 9:26
>>198
AFAIK, the way I'm using it is perfectly valid, and is one of the intended usages of the SYMBOL-MACROLET special operator. In that example, h represents the place of the arguments list in the hashtable, when used directly, you use the accessor to obtain the value, when used during SETF, you write to that place, so the symbol h represents a place within the hashtable. CL has things like WITH-SLOTS, which does the exact same thing - abstracts a place which points to a location within some object, and treats it like a symbol, which is perfectly fine usage. What is your argument against this?