diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-11 17:33:00 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-11 17:33:00 -0800 |
commit | 3c32f8de768338c0f64b1218a2f60f85d59c36ce (patch) | |
tree | 6465f8b1092d6ab46d4eae1ae9fa910f85b1643c /eval.c | |
parent | 15dda4428072bb741d6bf42fa4906b217fc2aeb1 (diff) | |
download | txr-3c32f8de768338c0f64b1218a2f60f85d59c36ce.tar.gz txr-3c32f8de768338c0f64b1218a2f60f85d59c36ce.tar.bz2 txr-3c32f8de768338c0f64b1218a2f60f85d59c36ce.zip |
* eval.c (eval_init): Register new functions posqual, posql,
posq, pos, and pos_if as intrinsics.
* lib.c (posqual, posql, posq, pos, pos_if): New functions.
* lib.h (posqual, posql, posq, pos, pos_if): Declared.
* txr.1: Documented
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2412,6 +2412,11 @@ void eval_init(void) reg_fun(intern(lit("countql"), user_package), func_n2(countql)); reg_fun(intern(lit("countq"), user_package), func_n2(countq)); reg_fun(intern(lit("count-if"), user_package), func_n3o(count_if, 2)); + reg_fun(intern(lit("posqual"), user_package), func_n2(posqual)); + reg_fun(intern(lit("posql"), user_package), func_n2(posql)); + reg_fun(intern(lit("posq"), user_package), func_n2(posq)); + reg_fun(intern(lit("pos"), user_package), func_n4o(pos, 2)); + reg_fun(intern(lit("pos-if"), user_package), func_n3o(pos_if, 2)); reg_fun(intern(lit("some"), user_package), func_n3o(some_satisfy, 1)); reg_fun(intern(lit("all"), user_package), func_n3o(all_satisfy, 1)); reg_fun(intern(lit("none"), user_package), func_n3o(none_satisfy, 1)); |