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