mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 10:16:32 +00:00
feat: add x-group
This commit is contained in:
@ -423,6 +423,11 @@
|
||||
(reverse (cdr it))))
|
||||
(alexandria:hash-table-alist groups)))))
|
||||
|
||||
(defun x-group (fn)
|
||||
(lambda (groups)
|
||||
(loop for (key . group) in groups
|
||||
collect (funcall fn key group))))
|
||||
|
||||
(defun hash-join (probe join-fn &key (test 'eql) (key 'car))
|
||||
(let* ((lookup (make-hash-table :test test :size (length probe)))
|
||||
(lookup-fn (functionalize lookup)))
|
||||
|
||||
Reference in New Issue
Block a user