;;;; common-list.scm --- COMMON LISP list functions for Scheme ;;;; ;;;; Copyright (C) 1995, 1996, 1997, 2001, 2006 Free Software Foundation, Inc. ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public ;;;; License as published by the Free Software Foundation; either ;;;; version 3 of the License, or (at your option) any later version. ;;;; ;;;; This library is distributed in the hope that it will be useful, ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;;; Lesser General Public License for more details. ;;;; ;;;; You should have received a copy of the GNU Lesser General Public ;;;; License along with this library; if not, write to the Free Software ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;;;; ;;; Commentary: ;; These procedures are exported: ;; (adjoin e l) ;; (union l1 l2) ;; (intersection l1 l2) ;; (set-difference l1 l2) ;; (reduce-init p init l) ;; (reduce p l) ;; (some pred l . rest) ;; (every pred l . rest) ;; (notany pred . ls) ;; (notevery pred . ls) ;; (count-if pred l) ;; (find-if pred l) ;; (member-if pred l) ;; (remove-if pred l) ;; (remove-if-not pred l) ;; (delete-if! pred l) ;; (delete-if-not! pred l) ;; (butlast lst n) ;; (and? . args) ;; (or? . args) ;; (has-duplicates? lst) ;; (pick p l) ;; (pick-mappings p l) ;; (uniq l) ;; ;; See docstrings for each procedure for more info. See also module ;; `(srfi srfi-1)' for a complete list handling library. ;;; Code: