diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-01-11 09:34:29 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-01-11 09:34:29 -0800 |
commit | b8b1c891f17d26cf3b13e77c1657cd855ae6543b (patch) | |
tree | 9455f30feafbc711d2192bd62003a975c9b0c13b /txr.1 | |
parent | 9496b3f825b80611b7bbfbc8cd9898da0412f581 (diff) | |
download | txr-b8b1c891f17d26cf3b13e77c1657cd855ae6543b.tar.gz txr-b8b1c891f17d26cf3b13e77c1657cd855ae6543b.tar.bz2 txr-b8b1c891f17d26cf3b13e77c1657cd855ae6543b.zip |
* eval.c (merge_wrap): Make generic over sequences.
* txr.1: Update documentation for merge function.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -14786,26 +14786,27 @@ value. .SS* List Sorting .coNP Function @ merge .synb -.mets (merge < list1 < list2 >> [ lessfun <> [ keyfun ]]) +.mets (merge < seq1 < seq2 >> [ lessfun <> [ keyfun ]]) .syne .desc The .code merge -function merges two sorted lists -.meta list1 +function merges two sorted sequences +.meta seq1 and -.meta list2 +.meta seq2 into a single -sorted list. The semantics and defaulting behavior of the +sorted sequence. The semantics and defaulting behavior of the .meta lessfun and .meta keyfun -arguments are the same as those of the sort function. The input lists -are assumed to be sorted according to these functions. +arguments are the same as those of the sort function. + +The sequence which is returned is of the same kind as +.metn seq1 . -This function is destructive. The application should not retain references to -the input lists, since the output list is formed out of the structure of the -input lists. +This function is destructive of any inputs that are lists. If the output +is a list, it is formed out of the structure of the input lists. .coNP Function @ multi-sort .synb |