diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-07-22 19:57:42 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-07-22 19:57:42 -0700 |
commit | e0092558ad119f9a3c16b9f357e7ca0dcdf1044c (patch) | |
tree | 26fd17118ef8a6cb0b3410cb93cc70cad9eb0978 /eval.c | |
parent | 9c2fcf3aeae6cd112a1e5b5e8374a03cf5217c9b (diff) | |
download | txr-e0092558ad119f9a3c16b9f357e7ca0dcdf1044c.tar.gz txr-e0092558ad119f9a3c16b9f357e7ca0dcdf1044c.tar.bz2 txr-e0092558ad119f9a3c16b9f357e7ca0dcdf1044c.zip |
New sspl function.
* eval (eval_init): Register sspl, an argument-reversed
interface to split-str-set.
* lib.c (sspl): New function.
* lib.h (sspl): Declared.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6808,6 +6808,7 @@ void eval_init(void) reg_fun(intern(lit("split-str"), user_package), func_n3o(split_str_keep, 2)); reg_fun(intern(lit("spl"), user_package), func_n3o(spl, 2)); reg_fun(intern(lit("split-str-set"), user_package), func_n2(split_str_set)); + reg_fun(intern(lit("sspl"), user_package), func_n2(sspl)); reg_fun(intern(lit("tok-str"), user_package), func_n3o(tok_str, 2)); reg_fun(intern(lit("tok"), user_package), func_n3o(tok, 2)); reg_fun(intern(lit("tok-where"), user_package), func_n2(tok_where)); |