fork download
  1. (setq mazeList '(A A A B B B C C C))
  2. (print mazeList)
  3. (nsubstitute 'F 'a mazeList)
  4. (nsubstitute 'L 'b mazeList)
  5. (nsubstitute 'R 'c mazeList)
  6. (print mazeList)
  7.  
  8. (defun my-compress (mazeList start end)
  9.  
  10. (let ( (a-string "" ))
  11. (do ((i start (+ i 1)))
  12. ((> i end) a-string)
  13. (setf a-string (concatenate 'string a-string (string (nth i
  14. a-list) ))))))
Success #stdin #stdout 0.02s 10592KB
stdin
Standard input is empty
stdout
(A A A B B B C C C) 
(F F F L L L R R R)