Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Caesar-cipher/Common-Lisp/caesar-cipher-3.lisp
Normal file
9
Task/Caesar-cipher/Common-Lisp/caesar-cipher-3.lisp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(defconstant +a+ "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz")
|
||||
|
||||
(defun caesar (txt offset)
|
||||
(map 'string
|
||||
#'(lambda (c)
|
||||
(if (find c +a+)
|
||||
(char +a+ (mod (+ (position c +a+) (* 2 offset)) 52))
|
||||
c))
|
||||
txt))
|
||||
Loading…
Add table
Add a link
Reference in a new issue