Robert Smith committed 3bc8d68

Return a permutation in the first generation of a perm-generator.

Comments (0)

Files changed (1)


         ;; We do this hackery to be able to emit the initial
         ;; (identity) perm. Initially PERM is just T -- not a vector.
         (if (not (vectorp perm))
-            (setf perm (iota-vector (1+ n)))
+            (progn
+              (setf perm (iota-vector (1+ n)))
+              (%make-perm :spec perm))
             (let ((next (next-perm perm n)))
               ;; If we are at the end, then set PERM to NIL.
               (if next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.