re: Apprenticeship

Liste des GroupesRevenir à cl lisp 
Sujet : re: Apprenticeship
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lisp comp.lang.scheme
Date : 07. Sep 2024, 07:48:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbgper$17kkl$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
(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")

Date Sujet#  Auteur
7 Sep 24 * Re: Apprenticeship2B. Pym
7 Sep 24 `- Re: Apprenticeship1Kaz Kylheku

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal