I am trying to write a decoder which uses 26 english letters. But since 26! is too much to calculate, My Permutation function cannot return the overall list so I want to return those elements one by one to evaluate them seperately. If someone help me It would be awesome. Below is the permutation function.
(defun permutations (coll) (if (not (cdr coll)) (list (first coll)) (loop for el in coll nconc (mapcar #'(lambda (combos) (cons el combos)) (permutations (remove el coll))) ) ) )