Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
18
Task/Caesar-cipher/Wortel/caesar-cipher.wortel
Normal file
18
Task/Caesar-cipher/Wortel/caesar-cipher.wortel
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
@let {
|
||||
; this function only replaces letters and keeps case
|
||||
ceasar &[s n] !!s.replace &"[a-z]"gi &[x] [
|
||||
@vars {
|
||||
t x.charCodeAt.
|
||||
l ?{
|
||||
&& > t 96 < t 123 97
|
||||
&& > t 64 < t 91 65
|
||||
0
|
||||
}
|
||||
}
|
||||
!String.fromCharCode ?{
|
||||
l +l ~% 26 -+ n t l
|
||||
t
|
||||
}
|
||||
]
|
||||
!!ceasar "abc $%^ ABC" 10
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue