diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-21 03:36:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-21 03:36:43 -0700 |
commit | effd37e7ed64dd0300b37af1a102febea84c9504 (patch) | |
tree | 84b70cf4e842b13a1244d6420f111e085d78c122 /lib.h | |
parent | 6c6d60171a53742ae856a59f063a229e990141b6 (diff) | |
download | txr-effd37e7ed64dd0300b37af1a102febea84c9504.tar.gz txr-effd37e7ed64dd0300b37af1a102febea84c9504.tar.bz2 txr-effd37e7ed64dd0300b37af1a102febea84c9504.zip |
New function: window-mapdo.
* lib.c (enum wmap_op): New enum type.
(window_map_list): Use enum wmap_op for last argument instead
of Boolean flag. If the argument is WMAP_MAPDO, do not
accumulate.
(window_map_vec, window_map, window_mapped): Adjust to new
enum argument.
(window_mapdo): New function.
* lib.h (window_mapdo): Declared.
* eval.c (eval_init): window-mapdo intrinsic registered.
* txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1055,6 +1055,7 @@ val mappend(val fun, val list); val mapdo(val fun, val list); val window_map(val range, val boundary, val fun, val seq); val window_mappend(val range, val boundary, val fun, val seq); +val window_mapdo(val range, val boundary, val fun, val seq); val interpose(val sep, val seq); val merge(val list1, val list2, val lessfun, val keyfun); val sort(val seq, val lessfun, val keyfun); |