From 4082718439e4facecfe72a94076fb51f1b97cb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 12 Aug 2020 16:58:03 +0200 Subject: Minor changes. --- module/util.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'module/util.scm') diff --git a/module/util.scm b/module/util.scm index fce1c014..1cc357fa 100644 --- a/module/util.scm +++ b/module/util.scm @@ -375,6 +375,7 @@ (for value in lst (let ((key (proc value))) (hash-set! h key (cons value (hash-ref h key '()))))) + ;; NOTE changing this list to cons allows the output to work with assq-merge. (hash-map->list list h))) ;; (group-by '(0 1 2 3 4 2 5 6) 2) -- cgit v1.2.3