list.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* classes: h_files */
  2. #ifndef SCM_LIST_H
  3. #define SCM_LIST_H
  4. /* Copyright (C) 1995,1996,1997,2000,2001,2003,2004,2005,2006,2008,2009
  5. * Free Software Foundation, Inc.
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public License
  9. * as published by the Free Software Foundation; either version 3 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  20. * 02110-1301 USA
  21. */
  22. #include "libguile/__scm.h"
  23. SCM_API SCM scm_list_1 (SCM e1);
  24. SCM_API SCM scm_list_2 (SCM e1, SCM e2);
  25. SCM_API SCM scm_list_3 (SCM e1, SCM e2, SCM e3);
  26. SCM_API SCM scm_list_4 (SCM e1, SCM e2, SCM e3, SCM e4);
  27. SCM_API SCM scm_list_5 (SCM e1, SCM e2, SCM e3, SCM e4, SCM e5);
  28. SCM_API SCM scm_list_n (SCM elt, ...);
  29. SCM_API SCM scm_list (SCM objs);
  30. SCM_API SCM scm_list_head (SCM lst, SCM k);
  31. SCM_API SCM scm_make_list (SCM n, SCM init);
  32. SCM_API SCM scm_cons_star (SCM arg, SCM objs);
  33. SCM_API SCM scm_null_p (SCM x);
  34. SCM_API SCM scm_list_p (SCM x);
  35. SCM_API long scm_ilength (SCM sx);
  36. SCM_API SCM scm_length (SCM x);
  37. SCM_API SCM scm_append (SCM args);
  38. SCM_API SCM scm_append_x (SCM args);
  39. SCM_API SCM scm_reverse (SCM lst);
  40. SCM_API SCM scm_reverse_x (SCM lst, SCM newtail);
  41. SCM_API SCM scm_list_ref (SCM lst, SCM k);
  42. SCM_API SCM scm_list_set_x (SCM lst, SCM k, SCM val);
  43. SCM_API SCM scm_list_cdr_set_x (SCM lst, SCM k, SCM val);
  44. SCM_API SCM scm_last_pair (SCM sx);
  45. SCM_API SCM scm_list_tail (SCM lst, SCM k);
  46. SCM_API SCM scm_c_memq (SCM x, SCM lst);
  47. SCM_API SCM scm_memq (SCM x, SCM lst);
  48. SCM_API SCM scm_memv (SCM x, SCM lst);
  49. SCM_API SCM scm_member (SCM x, SCM lst);
  50. SCM_API SCM scm_delq_x (SCM item, SCM lst);
  51. SCM_API SCM scm_delv_x (SCM item, SCM lst);
  52. SCM_API SCM scm_delete_x (SCM item, SCM lst);
  53. SCM_API SCM scm_list_copy (SCM lst);
  54. SCM_API SCM scm_delq (SCM item, SCM lst);
  55. SCM_API SCM scm_delv (SCM item, SCM lst);
  56. SCM_API SCM scm_delete (SCM item, SCM lst);
  57. SCM_API SCM scm_delq1_x (SCM item, SCM lst);
  58. SCM_API SCM scm_delv1_x (SCM item, SCM lst);
  59. SCM_API SCM scm_delete1_x (SCM item, SCM lst);
  60. SCM_API SCM scm_filter (SCM pred, SCM list);
  61. SCM_API SCM scm_filter_x (SCM pred, SCM list);
  62. SCM_API SCM scm_copy_tree (SCM obj);
  63. /* Guile internal functions */
  64. SCM_INTERNAL SCM scm_i_finite_list_copy (SCM /* a list known to be finite */);
  65. SCM_INTERNAL void scm_init_list (void);
  66. #endif /* SCM_LIST_H */
  67. /*
  68. Local Variables:
  69. c-file-style: "gnu"
  70. End:
  71. */