diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-03-12 20:40:03 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-03-12 20:40:03 -0700 |
commit | e39f3fcc0520ce0d93082a8b8e87187eb38efd48 (patch) | |
tree | 35c82a812f230e08405eb365a7fec4badc42af3f /lib.h | |
parent | df45e73d23d6871ce0ca415e009bf1bd2a520804 (diff) | |
download | txr-e39f3fcc0520ce0d93082a8b8e87187eb38efd48.tar.gz txr-e39f3fcc0520ce0d93082a8b8e87187eb38efd48.tar.bz2 txr-e39f3fcc0520ce0d93082a8b8e87187eb38efd48.zip |
New functions starts-with and ends-with.
* eval.c (eval_init): Register starts-with and ends-with
intrinsics.
* lib.c (starts_with, ends_with): New functions.
* lib.c (starts_with, ends_with): Declared.
* txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -974,6 +974,8 @@ val pos_max(val seq, val testfun, val keyfun); val pos_min(val seq, val testfun, val keyfun); val mismatch(val left, val right, val testfun, val keyfun); val rmismatch(val left, val right, val testfun, val keyfun); +val starts_with(val little, val big, val testfun, val keyfun); +val ends_with(val little, val big, val testfun, val keyfun); val take(val count, val seq); val take_while(val pred, val seq, val keyfun); val take_until(val pred, val seq, val keyfun); |