diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-11-23 06:42:52 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-11-23 06:42:52 -0800 |
commit | cdb62673a886801298c543346c2186f0e054ca6e (patch) | |
tree | 3dcdec25ff587329df02b76623c78a13dce9c7e6 /eval.c | |
parent | 3f4b4dc10fa7e2d099b2ba0dfef78c108a671ec9 (diff) | |
download | txr-cdb62673a886801298c543346c2186f0e054ca6e.tar.gz txr-cdb62673a886801298c543346c2186f0e054ca6e.tar.bz2 txr-cdb62673a886801298c543346c2186f0e054ca6e.zip |
New function: grade.
Inspired by APL.
* eval.c (eval_init): Register grade intrinsic.
* lib.c (grade): New function.
* lib.h (grade): Declared.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6003,6 +6003,7 @@ void eval_init(void) reg_fun(intern(lit("sort-group"), user_package), func_n3o(sort_group, 1)); reg_fun(intern(lit("unique"), user_package), func_n2ov(unique, 1)); reg_fun(intern(lit("uniq"), user_package), func_n1(uniq)); + reg_fun(intern(lit("grade"), user_package), func_n3o(grade, 1)); reg_var(intern(lit("*param-macro*"), user_package), pm_table); |