projects
/
reversi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r5141: Auto commit for Debian build
[reversi.git]
/
utils.lisp
diff --git
a/utils.lisp
b/utils.lisp
index 8a3ac40577d047ad9180359642a13ebdab05ab51..8cd387dc1063b78b36cafaa73789a1c40bb94a73 100644
(file)
--- a/
utils.lisp
+++ b/
utils.lisp
@@
-7,7
+7,7
@@
;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
-;;;; $Id: utils.lisp,v 1.
5 2003/06/12 12:42:1
3 kevin Exp $
+;;;; $Id: utils.lisp,v 1.
6 2003/06/12 13:08:4
3 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2001-2003 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file is Copyright (c) 2001-2003 by Kevin M. Rosenberg
;;;;
@@
-42,9
+42,10
@@
Like mapcon, but uses append instead of nconc."
(apply #'append (mapcar fn list)))
Like mapcon, but uses append instead of nconc."
(apply #'append (mapcar fn list)))
-(defun random-elt (seq)
+(defun random-nth (seq)
+ (declare (list seq))
"Pick a random element out of a sequence."
"Pick a random element out of a sequence."
- (
elt seq (random (length seq))
))
+ (
nth (random (length seq)) nth
))
(defun concat-symbol (&rest args)
"Concatenate symbols or strings to form an interned symbol"
(defun concat-symbol (&rest args)
"Concatenate symbols or strings to form an interned symbol"