RosettaCodeData/Task/Caesar-cipher/PicoLisp/caesar-cipher.l

7 lines
179 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(setq *Letters (apply circ (mapcar char (range 65 90))))
(de caesar (Str Key)
(pack
(mapcar '((C) (cadr (nth (member C *Letters) Key)))
(chop (uppc Str)) ) ) )