array-map.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef SCM_ARRAY_MAP_H
  2. #define SCM_ARRAY_MAP_H
  3. /* Copyright 1995-1997,2000,2006,2008-2011,2013,2015,2018
  4. Free Software Foundation, Inc.
  5. This file is part of Guile.
  6. Guile is free software: you can redistribute it and/or modify it
  7. under the terms of the GNU Lesser General Public License as published
  8. by the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Guile is distributed in the hope that it will be useful, but WITHOUT
  11. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with Guile. If not, see
  16. <https://www.gnu.org/licenses/>. */
  17. #include "libguile/scm.h"
  18. SCM_API int scm_ra_matchp (SCM ra0, SCM ras);
  19. SCM_API int scm_ramapc (void *cproc, SCM data, SCM ra0, SCM lra,
  20. const char *what);
  21. SCM_API SCM scm_array_fill_x (SCM ra, SCM fill);
  22. SCM_API SCM scm_array_copy_x (SCM src, SCM dst);
  23. SCM_API SCM scm_array_map_x (SCM ra0, SCM proc, SCM lra);
  24. SCM_API SCM scm_array_for_each (SCM proc, SCM ra0, SCM lra);
  25. SCM_API SCM scm_array_index_map_x (SCM ra, SCM proc);
  26. SCM_API SCM scm_array_equal_p (SCM ra0, SCM ra1);
  27. SCM_API SCM scm_array_slice_for_each (SCM frank, SCM op, SCM args);
  28. SCM_API SCM scm_array_slice_for_each_in_order (SCM frank, SCM op, SCM args);
  29. SCM_INTERNAL SCM scm_i_array_rebase (SCM a, size_t base);
  30. SCM_INTERNAL void scm_init_array_map (void);
  31. #endif /* SCM_ARRAY_MAP_H */