Login
7 branches 0 tags
Ben (Win10) Fixed log* functions by making them fold in the compiler 5e1d073 3 years ago 670 Commits
nujel / lib / type / tree.h
#ifndef NUJEL_LIB_COLLECTION_TREE
#define NUJEL_LIB_COLLECTION_TREE
#include "../nujel.h"

lTree *lTreeNew             (const lSymbol *s, lVal *v);
lTree *lTreeDup             (const lTree *t);

lVal  *lTreeGet             (const lTree *t, const lSymbol *s, bool *found);
bool   lTreeHas             (const lTree *t, const lSymbol *s, lVal **value);
uint   lTreeSize            (const lTree *t);

void   lTreeSet             (      lTree *t, const lSymbol *s, lVal *v, bool *found);
lTree *lTreeInsert          (      lTree *t, const lSymbol *s, lVal *v);

lVal  *lTreeToList          (const lTree *t);
lVal  *lTreeKeysToList      (const lTree *t);
lVal  *lTreeValuesToList    (const lTree *t);

#endif