rev-map function

Given an indicator function (A->B) and a list of items of A, return
an association list associating B to the elements that map to it;
essentially the inverse map of the indicator.
This commit is contained in:
2025-02-10 18:12:46 +00:00
parent 3e6da6b0f4
commit cb7dacccfa
2 changed files with 19 additions and 1 deletions

View File

@@ -29,7 +29,8 @@
(:use :cl :lib.macros)
(:export
:parse-integer*
:range :take :split))
:range :take :split
:rev-map))
(defpackage main
(:use :cl :lib.macros)