CJam, 4445
"Once wh
en Imwas
msix yea
r0sr2s oldm
I "N-'m/
S*'0sS*'2s-O"
saw"N/SO
o'aS"m0o'aS"m2
a"Oo'0a"Oo'2-N
-S/OI*so
'yI-a"nr
wINadi"cwiNadI"c
0N*'iaIScel'iaIS
*-elOo'x/m2*Oo'x
OodicI I-scel*
Try it onlineTry it online
"Once wh
en Imwas
msix yea
r0sr2s oldm
I " push this string
N- remove newlines
'm/S* replace m's with spaces
'0s'2s- remove zeros2's (the s is redundant)
O push an empty string
"
saw" push this string
N/ split into lines (effectively removes the newline)
S push a space
Oo print empty string (no-op)
'a push 'a'
S push a space
"m0"m2
a" push this string
Oo print empty string (no-op)
'0'2- remove zeros2's
N- remove newline
S/ split by space (effectively removes the space)
OI*so print an empty string repeated 18 times (no-op)
'y push 'y'
I- subtract 18, obtaining-> 'g'
a wrap in array (string) -> "g"
"nr
wINadi"wiNadI" push this string
c convert to (first) character -> 'n'
0N*c repeat a newlineconvert 0to timescharacter (emptyno-op)
el string convert to lowercase (no-op)
'i push 'i'
a wrap in array (string) -> "i"
IS*IS/ repeatsplit a" space" into slices of length 18 times
-> [" "]
m (acting as -) remove spacesspace strings from "i" (no-op)
el2* convertrepeat to"i" lowercase2 (notimes -op)> "ii"
Oo print empty string (no-op)
'x push 'x'
Oo I- print emptysubtract string18 (no-op)> 'f'
dicsc convert to double, integer,string thenand back to char (no-op)
Iel convert to lowercase (no-op)
* subtract 18,join obtaining"ii" with separator 'f' -> "ifi"