Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
23
Task/Caesar-cipher/Quackery/caesar-cipher.quackery
Normal file
23
Task/Caesar-cipher/Quackery/caesar-cipher.quackery
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[ dup upper != ] is lower? ( c --> b )
|
||||
|
||||
[ dup lower != ] is upper? ( c --> b )
|
||||
|
||||
[ swap $ "" unrot witheach
|
||||
[ dup lower? iff
|
||||
[ over +
|
||||
dup lower? not if
|
||||
[ 26 - ] ]
|
||||
else
|
||||
[ dup upper? if
|
||||
[ over +
|
||||
dup upper? not if
|
||||
[ 26 - ] ] ]
|
||||
rot swap join swap ]
|
||||
drop ] is caesar ( $ --> $ )
|
||||
|
||||
[ 26 swap - ] is decode ( n --> n )
|
||||
|
||||
$ "Fere libenter homines id quod volunt credunt."
|
||||
dup echo$ cr
|
||||
23 caesar dup echo$ cr
|
||||
23 decode caesar echo$ cr
|
||||
Loading…
Add table
Add a link
Reference in a new issue