srfi-1.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* srfi-1.h --- SRFI-1 procedures for Guile
  2. Copyright 2002-2003,2005-2006,2010-2011,2018
  3. Free Software Foundation, Inc.
  4. This file is part of Guile.
  5. Guile is free software: you can redistribute it and/or modify it
  6. under the terms of the GNU Lesser General Public License as published
  7. by the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. Guile is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  12. License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with Guile. If not, see
  15. <https://www.gnu.org/licenses/>. */
  16. #ifndef SCM_SRFI_1_H
  17. #define SCM_SRFI_1_H
  18. #include "libguile/scm.h"
  19. SCM_INTERNAL SCM scm_srfi1_append_reverse (SCM revhead, SCM tail);
  20. SCM_INTERNAL SCM scm_srfi1_append_reverse_x (SCM revhead, SCM tail);
  21. SCM_INTERNAL SCM scm_srfi1_concatenate (SCM lstlst);
  22. SCM_INTERNAL SCM scm_srfi1_concatenate_x (SCM lstlst);
  23. SCM_INTERNAL SCM scm_srfi1_count (SCM pred, SCM list1, SCM rest);
  24. SCM_INTERNAL SCM scm_srfi1_delete (SCM x, SCM lst, SCM pred);
  25. SCM_INTERNAL SCM scm_srfi1_delete_x (SCM x, SCM lst, SCM pred);
  26. SCM_INTERNAL SCM scm_srfi1_delete_duplicates (SCM lst, SCM pred);
  27. SCM_INTERNAL SCM scm_srfi1_delete_duplicates_x (SCM lst, SCM pred);
  28. SCM_INTERNAL SCM scm_srfi1_find (SCM pred, SCM lst);
  29. SCM_INTERNAL SCM scm_srfi1_find_tail (SCM pred, SCM lst);
  30. SCM_INTERNAL SCM scm_srfi1_length_plus (SCM lst);
  31. SCM_INTERNAL SCM scm_srfi1_lset_difference_x (SCM equal, SCM lst, SCM rest);
  32. SCM_INTERNAL SCM scm_srfi1_list_copy (SCM lst);
  33. SCM_INTERNAL SCM scm_srfi1_assoc (SCM key, SCM alist, SCM pred);
  34. SCM_INTERNAL SCM scm_srfi1_partition (SCM pred, SCM list);
  35. SCM_INTERNAL SCM scm_srfi1_partition_x (SCM pred, SCM list);
  36. SCM_INTERNAL SCM scm_srfi1_remove (SCM pred, SCM list);
  37. SCM_INTERNAL SCM scm_srfi1_remove_x (SCM pred, SCM list);
  38. SCM_INTERNAL void scm_register_srfi_1 (void);
  39. SCM_INTERNAL void scm_init_srfi_1 (void);
  40. #endif /* SCM_SRFI_1_H */