summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-04-21 03:36:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-04-21 03:36:43 -0700
commiteffd37e7ed64dd0300b37af1a102febea84c9504 (patch)
tree84b70cf4e842b13a1244d6420f111e085d78c122 /lib.h
parent6c6d60171a53742ae856a59f063a229e990141b6 (diff)
downloadtxr-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 624c24fa..79137610 100644
--- a/lib.h
+++ b/lib.h
@@ -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);