Guest User

Untitled

a guest
May 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. (defun nabeatsu (n)
  2. (loop for i from 1 to n
  3. collect (let ((i-str (number-to-string i)))
  4. (cond
  5. ((= (% i 3) 0)
  6. (concat i-str "!"))
  7. ((string-match-p "3" i-str)
  8. (concat i-str "!"))
  9. (t i-str)))))
  10.  
  11. (loop for x in (nabeatsu 100)
  12. do (message x))
Add Comment
Please, Sign In to add comment