clean up externals
[CommonLispStat.git] / external / ch-util / src / sequence.cl
blob7e6c2c1630036d13daef758f193cfe7b3512ba32
1 ;;;
2 ;;; vector.cl -- various lisp utilities for sequences
3 ;;;
4 ;;; Author: Cyrus Harmon <ch-lisp@bobobeach.com>
5 ;;;
7 (in-package :ch-util)
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)))))