Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 40 |
Nodes: | 6 (0 / 6) |
Uptime: | 10:24:57 |
Calls: | 291 |
Files: | 910 |
Messages: | 76,423 |
(let ((e-mail-address "PGIUHOGT@VGIHKRR.TKZ"))
(loop with new-string = (make-string (length e-mail-address))
for count from 0 to (1- (length e-mail-address))
for char-code = (char-code (aref e-mail-address count))
for new-char-code =
(if (and (> char-code 64)(< char-code 123))
(+ (mod (+ 13 char-code) 52) 65)
char-code)
do (setf (aref new-string count) (code-char new-char-code))
finally (return new-string)))
Gauche Scheme
(string-map
(^c (let1 n (char->integer c)
(integer->char
(if (< 64 n 123) (+ (modulo (+ 13 n) 52) 65) n))))
"PGIUHOGT@VGIHKRR.TKZ")
(mapcar [iffi chr-isupper (op wrap #\a #\z)] "PGIUHOGT@VGIHKRR.TKZ")"jacobian@pacbell.net"
(let ((e-mail-address "PGIUHOGT@VGIHKRR.TKZ"))
(loop with new-string = (make-string (length e-mail-address))
for count from 0 to (1- (length e-mail-address))
for char-code = (char-code (aref e-mail-address count))
for new-char-code =
(if (and (> char-code 64)(< char-code 123))
(+ (mod (+ 13 char-code) 52) 65)
char-code)
do (setf (aref new-string count) (code-char new-char-code))
finally (return new-string)))