diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-11-27 23:19:49 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-11-27 23:19:49 -0800 |
commit | 71f4c886ece16c2f8f1c52b86298cd348db37b8f (patch) | |
tree | 27ea1eb988b83b800e5f88a88efe96532425f18c /eval.c | |
parent | 38d30d7ce812bcccc5de475dd272eda9fb87e579 (diff) | |
download | txr-71f4c886ece16c2f8f1c52b86298cd348db37b8f.tar.gz txr-71f4c886ece16c2f8f1c52b86298cd348db37b8f.tar.bz2 txr-71f4c886ece16c2f8f1c52b86298cd348db37b8f.zip |
New range testing functions.
* eval.c (eval_init): Register in-range and in-range*
intrinsics.
* lib.c (in_range, in_range_star): New functions.
* lib.h (in_range, in_range_star): Declared.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6771,6 +6771,8 @@ void eval_init(void) reg_fun(intern(lit("rangep"), user_package), func_n1(rangep)); reg_fun(intern(lit("from"), user_package), func_n1(from)); reg_fun(intern(lit("to"), user_package), func_n1(to)); + reg_fun(intern(lit("in-range"), user_package), func_n2(in_range)); + reg_fun(intern(lit("in-range*"), user_package), func_n2(in_range_star)); reg_fun(intern(lit("make-like"), user_package), func_n2(make_like)); reg_fun(intern(lit("nullify"), user_package), func_n1(nullify)); |