Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Rot-13/Slope/rot-13.slope
Normal file
16
Task/Rot-13/Slope/rot-13.slope
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(define rot-char-13 (lambda (ch)
|
||||
(set! ch (string->rune ch))
|
||||
(cond
|
||||
(
|
||||
(or
|
||||
(and (>= ch (string->rune "a")) (<= ch (string->rune "m")))
|
||||
(and (>= ch (string->rune "A")) (<= ch (string->rune "M"))))
|
||||
(rune->string (+ ch 13)))
|
||||
(
|
||||
(or
|
||||
(and (>= ch (string->rune "n")) (<= ch (string->rune "z")))
|
||||
(and (>= ch (string->rune "N")) (<= ch (string->rune "Z"))))
|
||||
(rune->string (- ch 13)))
|
||||
(else (rune->string ch)))))
|
||||
|
||||
(display (list->string (map rot-char-13 (string->list "nowhere->ABJURER!"))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue