summaryrefslogtreecommitdiffstats
path: root/stdlib/csort.tl
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/csort.tl')
-rw-r--r--stdlib/csort.tl3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/csort.tl b/stdlib/csort.tl
index 44715236..345b4ce8 100644
--- a/stdlib/csort.tl
+++ b/stdlib/csort.tl
@@ -41,3 +41,6 @@
(defun csnsort (seq : (less-fun :) (key-fun :))
(cached-sort-body snsort))
+
+(defun csort-group (seq : (key-fun :) (less-fun :))
+ (partition-by key-fun (csort seq less-fun key-fun)))