From 31afd1f7be00fbd28ea1c66ad9411d4fdf722ea7 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 2 Jan 2023 21:28:52 +0100 Subject: add generic sort, sort! --- mew.svnwiki | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'mew.svnwiki') diff --git a/mew.svnwiki b/mew.svnwiki index ffb99cb..2ac6cfe 100644 --- a/mew.svnwiki +++ b/mew.svnwiki @@ -43,7 +43,6 @@ SRFI-158 (Generators and Accumulators), {{(chicken io)}}, {{(chicken irregex)}}, {{(chicken pretty-print)}}}, -{{(chicken sort)}}}, {{matchable}}, and {{err}} (see {{err.svnwiki}}). @@ -381,6 +380,19 @@ otherwise. It is an error to compare uncomparable values. +== Sorting + +(sort []) + +Sort the list/vector {{}} according to the relation {{less?}} +(by default: {{(sort! []) + +Sort the vector {{}} destructively according to the relation +{{less?}} (by default: {{(get ) -- cgit 1.4.1