Changed license terms to the plain LGPL thru-out.
[bpt/guile.git] / libguile / list.h
CommitLineData
0f2d19dd
JB
1/* classes: h_files */
2
dee01b01
DH
3#ifndef SCM_LIST_H
4#define SCM_LIST_H
5
c614a00b 6/* Copyright (C) 1995,1996,1997,2000,2001, 2003 Free Software Foundation, Inc.
dee01b01 7 *
73be1d9e
MV
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
dee01b01 12 *
73be1d9e 13 * This library is distributed in the hope that it will be useful,
0f2d19dd 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
73be1d9e
MV
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
dee01b01 17 *
73be1d9e
MV
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
dee01b01 22
0f2d19dd
JB
23\f
24
b4309c3c 25#include "libguile/__scm.h"
0f2d19dd
JB
26
27\f
92396c0a 28
33b001fd
MV
29SCM_API SCM scm_list_1 (SCM e1);
30SCM_API SCM scm_list_2 (SCM e1, SCM e2);
31SCM_API SCM scm_list_3 (SCM e1, SCM e2, SCM e3);
32SCM_API SCM scm_list_4 (SCM e1, SCM e2, SCM e3, SCM e4);
33SCM_API SCM scm_list_5 (SCM e1, SCM e2, SCM e3, SCM e4, SCM e5);
34SCM_API SCM scm_list_n (SCM elt, ...);
35SCM_API SCM scm_list_head (SCM lst, SCM k);
36SCM_API SCM scm_list (SCM objs);
37SCM_API SCM scm_cons_star (SCM arg, SCM objs);
38SCM_API SCM scm_null_p (SCM x);
39SCM_API SCM scm_list_p (SCM x);
40SCM_API long scm_ilength (SCM sx);
41SCM_API SCM scm_length (SCM x);
42SCM_API SCM scm_append (SCM args);
43SCM_API SCM scm_append_x (SCM args);
44SCM_API SCM scm_reverse (SCM lst);
45SCM_API SCM scm_reverse_x (SCM lst, SCM newtail);
46SCM_API SCM scm_list_ref (SCM lst, SCM k);
47SCM_API SCM scm_list_set_x (SCM lst, SCM k, SCM val);
48SCM_API SCM scm_list_cdr_set_x (SCM lst, SCM k, SCM val);
49SCM_API SCM scm_last_pair (SCM sx);
50SCM_API SCM scm_list_tail (SCM lst, SCM k);
51SCM_API SCM scm_c_memq (SCM x, SCM lst);
52SCM_API SCM scm_memq (SCM x, SCM lst);
53SCM_API SCM scm_memv (SCM x, SCM lst);
54SCM_API SCM scm_member (SCM x, SCM lst);
55SCM_API SCM scm_delq_x (SCM item, SCM lst);
56SCM_API SCM scm_delv_x (SCM item, SCM lst);
57SCM_API SCM scm_delete_x (SCM item, SCM lst);
58SCM_API SCM scm_list_copy (SCM lst);
59SCM_API SCM scm_delq (SCM item, SCM lst);
60SCM_API SCM scm_delv (SCM item, SCM lst);
61SCM_API SCM scm_delete (SCM item, SCM lst);
62SCM_API SCM scm_delq1_x (SCM item, SCM lst);
63SCM_API SCM scm_delv1_x (SCM item, SCM lst);
64SCM_API SCM scm_delete1_x (SCM item, SCM lst);
c614a00b
MD
65SCM_API SCM scm_filter (SCM pred, SCM list);
66SCM_API SCM scm_filter_x (SCM pred, SCM list);
33b001fd 67SCM_API void scm_init_list (void);
0f2d19dd 68
dee01b01 69#endif /* SCM_LIST_H */
89e00824
ML
70
71/*
72 Local Variables:
73 c-file-style: "gnu"
74 End:
75*/