Commits

Paolo G. Giarrusso committed 929c0b2

list.h: add List_size and List_length

Comments (0)

Files changed (1)

 void List_set(List *l, int index, tagged_el_t o);
 void List_append(List *l, tagged_el_t o);
 
+static inline unsigned int List_size(List *l) {
+    return l->data->length;
+}
+
+static inline unsigned int List_length(List *l) {
+    return l->length;
+}
+
 extern Type List_type;
 
 END_DECLS