Serene Runtime 1.0.0
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_list_node_t Struct Reference

A list is a singly linked sequence of values. More...

#include <lists.h>

Collaboration diagram for srn_list_node_t:
[legend]

Data Fields

srn_value_tvalue
 
struct srn_list_node_tnext
 

Detailed Description

A list is a singly linked sequence of values.

Nodes hold a value and a pointer to the next node; the list header caches the length and points at the head node. Empty lists are represented by nil_v; a list value with tag VList always has at least one element.

Definition at line 30 of file lists.h.

Field Documentation

◆ next

struct srn_list_node_t* srn_list_node_t::next

Definition at line 32 of file lists.h.

◆ value

srn_value_t* srn_list_node_t::value

Definition at line 31 of file lists.h.


The documentation for this struct was generated from the following file: