Robert Smith avatar Robert Smith committed f074feb

Make some error messages clearer.

Comments (0)

Files changed (1)

   "Verify (via assertions) that the elements "
   (assert (every 'integerp elements)
             nil
-            "Permutation syntax must only have integers.")
+            "Permutation must only have integers.")
   
   (assert (every 'plusp elements)
             nil
-            "Permutation syntax must contain positive numbers only.")
+            "Permutation must contain positive numbers only.")
   
   (assert (contains-1-to-N elements)
           nil
-          "Permutation syntax must contain the numbers 1 to ~A ~
-           for the permutation given." (length elements)))
+          "Given permutation must contain the numbers 1 to ~A"
+          (length elements)))
 
 (defun perm-reader (stream char n)
   (declare (ignore char n))
   (if (perm-even-p perm) 1 -1))
 
 (defun perm-compose (p1 p2)
-  "Compose the permutations P1 and P2."
+  "Compose the permutations P1 and P2: x |-> P2(P1(x))."
   #+#:ignore
   (assert (= (perm-size p1)
              (perm-size p2))
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 ProjectModifiedEvent.java.
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.