move srfi-1 and srfi-60 C impl to libguile, without public C api
[bpt/guile.git] / libguile / srfi-1.h
CommitLineData
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
27SCM_INTERNAL SCM scm_srfi1_alist_copy (SCM alist);
28SCM_INTERNAL SCM scm_srfi1_append_reverse (SCM revhead, SCM tail);
29SCM_INTERNAL SCM scm_srfi1_append_reverse_x (SCM revhead, SCM tail);
30SCM_INTERNAL SCM scm_srfi1_break (SCM pred, SCM lst);
31SCM_INTERNAL SCM scm_srfi1_break_x (SCM pred, SCM lst);
32SCM_INTERNAL SCM scm_srfi1_car_plus_cdr (SCM pair);
33SCM_INTERNAL SCM scm_srfi1_concatenate (SCM lstlst);
34SCM_INTERNAL SCM scm_srfi1_concatenate_x (SCM lstlst);
35SCM_INTERNAL SCM scm_srfi1_count (SCM pred, SCM list1, SCM rest);
36SCM_INTERNAL SCM scm_srfi1_delete (SCM x, SCM lst, SCM pred);
37SCM_INTERNAL SCM scm_srfi1_delete_x (SCM x, SCM lst, SCM pred);
38SCM_INTERNAL SCM scm_srfi1_delete_duplicates (SCM lst, SCM pred);
39SCM_INTERNAL SCM scm_srfi1_delete_duplicates_x (SCM lst, SCM pred);
40SCM_INTERNAL SCM scm_srfi1_drop_right (SCM lst, SCM n);
41SCM_INTERNAL SCM scm_srfi1_drop_right_x (SCM lst, SCM n);
42SCM_INTERNAL SCM scm_srfi1_drop_while (SCM pred, SCM lst);
43SCM_INTERNAL SCM scm_srfi1_eighth (SCM lst);
44SCM_INTERNAL SCM scm_srfi1_fifth (SCM lst);
45SCM_INTERNAL SCM scm_srfi1_filter_map (SCM proc, SCM list1, SCM rest);
46SCM_INTERNAL SCM scm_srfi1_find (SCM pred, SCM lst);
47SCM_INTERNAL SCM scm_srfi1_find_tail (SCM pred, SCM lst);
48SCM_INTERNAL SCM scm_srfi1_fold (SCM proc, SCM init, SCM list1, SCM rest);
49SCM_INTERNAL SCM scm_srfi1_last (SCM lst);
50SCM_INTERNAL SCM scm_srfi1_length_plus (SCM lst);
51SCM_INTERNAL SCM scm_srfi1_lset_adjoin (SCM equal, SCM lst, SCM rest);
52SCM_INTERNAL SCM scm_srfi1_lset_difference_x (SCM equal, SCM lst, SCM rest);
53SCM_INTERNAL SCM scm_srfi1_list_copy (SCM lst);
54SCM_INTERNAL SCM scm_srfi1_list_index (SCM pred, SCM list1, SCM rest);
55SCM_INTERNAL SCM scm_srfi1_list_tabulate (SCM n, SCM proc);
56SCM_INTERNAL SCM scm_srfi1_map (SCM proc, SCM arg1, SCM args);
57SCM_INTERNAL SCM scm_srfi1_for_each (SCM proc, SCM arg1, SCM args);
58SCM_INTERNAL SCM scm_srfi1_member (SCM obj, SCM ls, SCM pred);
59SCM_INTERNAL SCM scm_srfi1_ninth (SCM lst);
60SCM_INTERNAL SCM scm_srfi1_assoc (SCM key, SCM alist, SCM pred);
61SCM_INTERNAL SCM scm_srfi1_not_pair_p (SCM obj);
62SCM_INTERNAL SCM scm_srfi1_partition (SCM pred, SCM list);
63SCM_INTERNAL SCM scm_srfi1_partition_x (SCM pred, SCM list);
64SCM_INTERNAL SCM scm_srfi1_reduce (SCM proc, SCM def, SCM lst);
65SCM_INTERNAL SCM scm_srfi1_reduce_right (SCM proc, SCM def, SCM lst);
66SCM_INTERNAL SCM scm_srfi1_remove (SCM pred, SCM list);
67SCM_INTERNAL SCM scm_srfi1_remove_x (SCM pred, SCM list);
68SCM_INTERNAL SCM scm_srfi1_seventh (SCM lst);
69SCM_INTERNAL SCM scm_srfi1_sixth (SCM lst);
70SCM_INTERNAL SCM scm_srfi1_span (SCM pred, SCM lst);
71SCM_INTERNAL SCM scm_srfi1_span_x (SCM pred, SCM lst);
72SCM_INTERNAL SCM scm_srfi1_split_at (SCM lst, SCM n);
73SCM_INTERNAL SCM scm_srfi1_split_at_x (SCM lst, SCM n);
74SCM_INTERNAL SCM scm_srfi1_take_x (SCM lst, SCM n);
75SCM_INTERNAL SCM scm_srfi1_take_right (SCM lst, SCM n);
76SCM_INTERNAL SCM scm_srfi1_take_while (SCM pred, SCM lst);
77SCM_INTERNAL SCM scm_srfi1_take_while_x (SCM pred, SCM lst);
78SCM_INTERNAL SCM scm_srfi1_tenth (SCM lst);
79SCM_INTERNAL SCM scm_srfi1_xcons (SCM d, SCM a);
80
81SCM_INTERNAL void scm_register_srfi_1 (void);
82SCM_INTERNAL void scm_init_srfi_1 (void);
83
84#endif /* SCM_SRFI_1_H */