Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge #6001: FIOC

Name: Christopher 2017-10-21 9:05

Input: A four-letter ASCII string
Output: The phrase ``αorced αndendation αf αode'',
with the alphae replaced with the consecutive letters from the input, shifted to uppercase.
╔═══════════════════════════════════════════════
║Example 1: sicp -> Sorced Indendation Cf Pode
║Example 2: SUSS -> Sorced Undendation Sf Sode
╚═══════════════════════════════════════════════

Your entry has to be a
source code
of a complete program
that takes the input on stdin and outputs the string to stdout. Shortest program wins.

Name: Anonymous 2017-10-24 6:45

>>30,33
actually, converting string to list makes it possible to use apply. this makes the CL version much shorter:
(apply #'format t"~aorced ~andentation ~af ~aode"(coerce(string-upcase(read))'list))

racket version also gets better, but not that much better:
(apply format "~aorced ~andentation ~af ~aode" (string->list(string-upcase(read-line))))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List