]> git.lizzy.rs Git - nothing.git/blob - src/script/builtins.h
Merge pull request #315 from tsoding/310
[nothing.git] / src / script / builtins.h
1 #ifndef BUILTINS_H_
2 #define BUILTINS_H_
3
4 #include "expr.h"
5
6 bool equal(struct Expr obj1, struct Expr obj2);
7
8 bool nil_p(struct Expr obj);
9 bool symbol_p(struct Expr obj);
10 bool cons_p(struct Expr obj);
11
12 /// You should never detroy the result of assoc because it always
13 /// returns the subexpression of alist
14 struct Expr assoc(struct Expr key, struct Expr alist);
15
16 #endif  // BUILTINS_H_