2 ;;; vector.cl -- various lisp utilities for sequences
4 ;;; Author: Cyrus Harmon <ch-lisp@bobobeach.com>
9 (defun max-length (&rest seqs
)
10 (apply #'max
(mapcar #'length seqs
)))
12 (defun seqmin (seq &key key
)
13 (car (apply #'sort
(copy-seq seq
) #'<
14 (when key
`(:key
,key
)))))
16 (defun seqmax (seq &key key
)
17 (car (apply #'sort
(copy-seq seq
) #'>
18 (when key
`(:key
,key
)))))