Commit | Line | Data |
---|---|---|
37710f7e AW |
1 | /* srfi-1.h --- SRFI-1 procedures for Guile |
2 | * | |
3 | * Copyright (C) 2002, 2003, 2005, 2006, 2010 Free Software Foundation, Inc. | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public License | |
7 | * as published by the Free Software Foundation; either version 3 of | |
8 | * the License, or (at your option) any later version. | |
9 | * | |
10 | * This library is distributed in the hope that it will be useful, but | |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this library; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
18 | * 02110-1301 USA | |
19 | */ | |
20 | \f | |
21 | ||
22 | #ifndef SCM_SRFI_1_H | |
23 | #define SCM_SRFI_1_H | |
24 | ||
25 | #include "libguile/__scm.h" | |
26 | ||
27 | SCM_INTERNAL SCM scm_srfi1_alist_copy (SCM alist); | |
28 | SCM_INTERNAL SCM scm_srfi1_append_reverse (SCM revhead, SCM tail); | |
29 | SCM_INTERNAL SCM scm_srfi1_append_reverse_x (SCM revhead, SCM tail); | |
30 | SCM_INTERNAL SCM scm_srfi1_break (SCM pred, SCM lst); | |
31 | SCM_INTERNAL SCM scm_srfi1_break_x (SCM pred, SCM lst); | |
32 | SCM_INTERNAL SCM scm_srfi1_car_plus_cdr (SCM pair); | |
33 | SCM_INTERNAL SCM scm_srfi1_concatenate (SCM lstlst); | |
34 | SCM_INTERNAL SCM scm_srfi1_concatenate_x (SCM lstlst); | |
35 | SCM_INTERNAL SCM scm_srfi1_count (SCM pred, SCM list1, SCM rest); | |
36 | SCM_INTERNAL SCM scm_srfi1_delete (SCM x, SCM lst, SCM pred); | |
37 | SCM_INTERNAL SCM scm_srfi1_delete_x (SCM x, SCM lst, SCM pred); | |
38 | SCM_INTERNAL SCM scm_srfi1_delete_duplicates (SCM lst, SCM pred); | |
39 | SCM_INTERNAL SCM scm_srfi1_delete_duplicates_x (SCM lst, SCM pred); | |
40 | SCM_INTERNAL SCM scm_srfi1_drop_right (SCM lst, SCM n); | |
41 | SCM_INTERNAL SCM scm_srfi1_drop_right_x (SCM lst, SCM n); | |
42 | SCM_INTERNAL SCM scm_srfi1_drop_while (SCM pred, SCM lst); | |
43 | SCM_INTERNAL SCM scm_srfi1_eighth (SCM lst); | |
44 | SCM_INTERNAL SCM scm_srfi1_fifth (SCM lst); | |
45 | SCM_INTERNAL SCM scm_srfi1_filter_map (SCM proc, SCM list1, SCM rest); | |
46 | SCM_INTERNAL SCM scm_srfi1_find (SCM pred, SCM lst); | |
47 | SCM_INTERNAL SCM scm_srfi1_find_tail (SCM pred, SCM lst); | |
48 | SCM_INTERNAL SCM scm_srfi1_fold (SCM proc, SCM init, SCM list1, SCM rest); | |
49 | SCM_INTERNAL SCM scm_srfi1_last (SCM lst); | |
50 | SCM_INTERNAL SCM scm_srfi1_length_plus (SCM lst); | |
51 | SCM_INTERNAL SCM scm_srfi1_lset_adjoin (SCM equal, SCM lst, SCM rest); | |
52 | SCM_INTERNAL SCM scm_srfi1_lset_difference_x (SCM equal, SCM lst, SCM rest); | |
53 | SCM_INTERNAL SCM scm_srfi1_list_copy (SCM lst); | |
54 | SCM_INTERNAL SCM scm_srfi1_list_index (SCM pred, SCM list1, SCM rest); | |
55 | SCM_INTERNAL SCM scm_srfi1_list_tabulate (SCM n, SCM proc); | |
56 | SCM_INTERNAL SCM scm_srfi1_map (SCM proc, SCM arg1, SCM args); | |
57 | SCM_INTERNAL SCM scm_srfi1_for_each (SCM proc, SCM arg1, SCM args); | |
58 | SCM_INTERNAL SCM scm_srfi1_member (SCM obj, SCM ls, SCM pred); | |
59 | SCM_INTERNAL SCM scm_srfi1_ninth (SCM lst); | |
60 | SCM_INTERNAL SCM scm_srfi1_assoc (SCM key, SCM alist, SCM pred); | |
61 | SCM_INTERNAL SCM scm_srfi1_not_pair_p (SCM obj); | |
62 | SCM_INTERNAL SCM scm_srfi1_partition (SCM pred, SCM list); | |
63 | SCM_INTERNAL SCM scm_srfi1_partition_x (SCM pred, SCM list); | |
64 | SCM_INTERNAL SCM scm_srfi1_reduce (SCM proc, SCM def, SCM lst); | |
65 | SCM_INTERNAL SCM scm_srfi1_reduce_right (SCM proc, SCM def, SCM lst); | |
66 | SCM_INTERNAL SCM scm_srfi1_remove (SCM pred, SCM list); | |
67 | SCM_INTERNAL SCM scm_srfi1_remove_x (SCM pred, SCM list); | |
68 | SCM_INTERNAL SCM scm_srfi1_seventh (SCM lst); | |
69 | SCM_INTERNAL SCM scm_srfi1_sixth (SCM lst); | |
70 | SCM_INTERNAL SCM scm_srfi1_span (SCM pred, SCM lst); | |
71 | SCM_INTERNAL SCM scm_srfi1_span_x (SCM pred, SCM lst); | |
72 | SCM_INTERNAL SCM scm_srfi1_split_at (SCM lst, SCM n); | |
73 | SCM_INTERNAL SCM scm_srfi1_split_at_x (SCM lst, SCM n); | |
74 | SCM_INTERNAL SCM scm_srfi1_take_x (SCM lst, SCM n); | |
75 | SCM_INTERNAL SCM scm_srfi1_take_right (SCM lst, SCM n); | |
76 | SCM_INTERNAL SCM scm_srfi1_take_while (SCM pred, SCM lst); | |
77 | SCM_INTERNAL SCM scm_srfi1_take_while_x (SCM pred, SCM lst); | |
78 | SCM_INTERNAL SCM scm_srfi1_tenth (SCM lst); | |
79 | SCM_INTERNAL SCM scm_srfi1_xcons (SCM d, SCM a); | |
80 | ||
81 | SCM_INTERNAL void scm_register_srfi_1 (void); | |
82 | SCM_INTERNAL void scm_init_srfi_1 (void); | |
83 | ||
84 | #endif /* SCM_SRFI_1_H */ |