From bdf06469c772975ddcc6f2716f49e5acd2beec19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 25 Jul 2022 01:16:10 +0200 Subject: Up-prioritize api change for group-by. --- module/hnh/util.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/hnh/util.scm b/module/hnh/util.scm index 096e38c5..7509fc86 100644 --- a/module/hnh/util.scm +++ b/module/hnh/util.scm @@ -323,7 +323,9 @@ (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. + ;; TODO change this 'list' to 'cons'. + ;; It will give a "proper" alist, and also allows the output to work + ;; with assq-merge (hash-map->list list h))) ;; (split-by '(0 1 2 3 4 2 5 6) 2) -- cgit v1.2.3