#include "serene/rt/core/values.h"
Go to the source code of this file.
|
| typedef struct srn_pair_t | srn_pair_t |
| |
| typedef struct srn_list_t | srn_list_t |
| | Since all the values are immutable and persistent.
|
| |
◆ srn_list_t
| typedef struct srn_list_t srn_list_t |
Since all the values are immutable and persistent.
A List is just a metadata on top of a chain of pairs
◆ srn_pair_t
| typedef struct srn_pair_t srn_pair_t |
◆ srn_conj_list()
Add the given value v to the front of the list and returns the new list.
◆ srn_is_list()
Definition at line 46 of file lists.h.
46 {
47 return ((v & TAG_PRIM_MASK) == TAG_LIST);
48}
◆ srn_is_pair()
Definition at line 42 of file lists.h.
42 {
43 return ((v & TAG_PRIM_MASK) == TAG_PAIR);
44}
◆ srn_make_list()
Create a new list and empty list.
Definition at line 31 of file lists.c.
31 {
35}
Since all the values are immutable and persistent.
◆ srn_make_pair()
Create a new pair of values in the given context ctx.