2014-01-17 06:58:31 -05:00
|
|
|
/**
|
|
|
|
* See Copyright Notice in picrin.h
|
|
|
|
*/
|
|
|
|
|
2014-01-23 02:47:13 -05:00
|
|
|
#ifndef PICRIN_PAIR_H__
|
|
|
|
#define PICRIN_PAIR_H__
|
2013-10-19 23:34:57 -04:00
|
|
|
|
2014-01-17 22:41:39 -05:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-10-19 23:34:57 -04:00
|
|
|
pic_value pic_cons(pic_state *, pic_value, pic_value);
|
|
|
|
pic_value pic_car(pic_state *, pic_value);
|
|
|
|
pic_value pic_cdr(pic_state *, pic_value);
|
|
|
|
|
2013-10-20 23:03:35 -04:00
|
|
|
bool pic_list_p(pic_state *, pic_value);
|
2013-10-19 23:34:57 -04:00
|
|
|
pic_value pic_list(pic_state *, size_t, ...);
|
2013-11-17 04:16:03 -05:00
|
|
|
pic_value pic_list_from_array(pic_state *, size_t, pic_value *);
|
2014-01-22 08:37:27 -05:00
|
|
|
pic_value pic_make_list(pic_state *, int, pic_value);
|
2013-10-19 23:34:57 -04:00
|
|
|
|
2013-10-24 08:55:07 -04:00
|
|
|
int pic_length(pic_state *, pic_value);
|
2013-10-21 11:19:43 -04:00
|
|
|
pic_value pic_reverse(pic_state *, pic_value);
|
2014-01-22 06:57:14 -05:00
|
|
|
pic_value pic_append(pic_state *, pic_value, pic_value);
|
2013-10-21 11:19:43 -04:00
|
|
|
|
2013-10-19 23:34:57 -04:00
|
|
|
pic_value pic_assq(pic_state *, pic_value key, pic_value assoc);
|
2013-12-07 09:30:21 -05:00
|
|
|
pic_value pic_assoc(pic_state *, pic_value key, pic_value assoc);
|
2013-10-20 01:04:39 -04:00
|
|
|
pic_value pic_acons(pic_state *, pic_value key, pic_value val, pic_value assoc);
|
2013-10-19 23:34:57 -04:00
|
|
|
|
2013-11-26 05:42:13 -05:00
|
|
|
pic_value pic_caar(pic_state *, pic_value);
|
|
|
|
pic_value pic_cadr(pic_state *, pic_value);
|
|
|
|
pic_value pic_cdar(pic_state *, pic_value);
|
|
|
|
pic_value pic_cddr(pic_state *, pic_value);
|
|
|
|
|
2014-01-22 06:57:05 -05:00
|
|
|
pic_value pic_list_tail(pic_state *, pic_value ,int);
|
|
|
|
pic_value pic_list_ref(pic_state *, pic_value, int);
|
2014-01-22 07:35:13 -05:00
|
|
|
void pic_list_set(pic_state *, pic_value, int, pic_value);
|
2014-01-22 08:37:27 -05:00
|
|
|
pic_value pic_list_copy(pic_state *, pic_value);
|
2014-01-22 06:57:05 -05:00
|
|
|
|
2014-01-17 22:41:39 -05:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-10-19 23:34:57 -04:00
|
|
|
#endif
|