summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-01-02 21:35:29 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-01-02 21:35:29 +0100
commit58f600a1bda649cf60568fd6c53784f035899d63 (patch)
tree16d0a79fe38f1856ccfe5600f4b8e266845f9d71 /mew.svnwiki
parent31afd1f7be00fbd28ea1c66ad9411d4fdf722ea7 (diff)
downloadmew-58f600a1bda649cf60568fd6c53784f035899d63.tar.gz
mew-58f600a1bda649cf60568fd6c53784f035899d63.tar.xz
mew-58f600a1bda649cf60568fd6c53784f035899d63.zip
add sort-by
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki10
1 files changed, 8 insertions, 2 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 2ac6cfe..d3adc99 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -384,13 +384,19 @@ It is an error to compare uncomparable values.
 
 <procedure>(sort <obj> [<less?>])</procedure>
 
-Sort the list/vector {{<obj>}} according to the relation {{less?}}
+Sort the list/vector {{<obj>}} according to the relation {{<less?>}}
 (by default: {{<?}}).
 
 <procedure>(sort! <obj> [<less?>])</procedure>
 
 Sort the vector {{<obj>}} destructively according to the relation
-{{less?}} (by default: {{<?}}).
+{{<less>?}} (by default: {{<?}}).
+
+<procedure>(sort-by <obj> <f> [<less?>])</procedure>
+
+Sort the items of the list/vector {{<obj>}} by their image under {{f}},
+according to the relation {{<less?>}} (by default: {{<?}}).
+This uses a Schwartzian transform and evaluates {{f}} only once per item.
 
 
 == Data types