Like mapcon, but uses append instead of nconc."
(apply #'append (mapcar fn list)))
-(defun random-nth (seq)
- (declare (list seq))
- "Pick a random element out of a sequence."
- (nth (random (length seq)) nth))
+(defun random-nth (list)
+ (declare (list list))
+ "Pick a random element out of a list."
+ (nth (random (length list)) list))
(defun concat-symbol (&rest args)
"Concatenate symbols or strings to form an interned symbol"