projects
/
reversi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r6298: convert .cvsignore to svn:ignore properties
[reversi.git]
/
utils.lisp
diff --git
a/utils.lisp
b/utils.lisp
index 247722415a707252417378d1fefa378d61431a4e..8cd387dc1063b78b36cafaa73789a1c40bb94a73 100644
(file)
--- a/
utils.lisp
+++ b/
utils.lisp
@@
-7,9
+7,9
@@
;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
-;;;; $Id: utils.lisp,v 1.
4 2003/05/06 15:51:20
kevin Exp $
+;;;; $Id: utils.lisp,v 1.
6 2003/06/12 13:08:43
kevin Exp $
;;;;
;;;;
-;;;; This file is Copyright (c) 2001-200
2
by Kevin M. Rosenberg
+;;;; This file is Copyright (c) 2001-200
3
by Kevin M. Rosenberg
;;;;
;;;; Reversi users are granted the rights to distribute and use this software
;;;; as governed by the terms of the Lisp Lesser GNU Public License
;;;;
;;;; Reversi users are granted the rights to distribute and use this software
;;;; as governed by the terms of the Lisp Lesser GNU Public License
@@
-18,8
+18,6
@@
(in-package #:reversi)
(in-package #:reversi)
-(eval-when (:compile-toplevel)
- (declaim (optimize (safety 1) (space 0) (speed 3) (compilation-speed 0))))
(defmacro missing-argument ()
`(error "Missing an argument to a constructor"))
(defmacro missing-argument ()
`(error "Missing an argument to a constructor"))
@@
-44,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"