Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Reverse-a-string/Symsyn/reverse-a-string-1.symsyn
Normal file
18
Task/Reverse-a-string/Symsyn/reverse-a-string-1.symsyn
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
| reverse string
|
||||
|
||||
c : 'abcdefghijklmnopqrstuvwxyz'
|
||||
d : ' '
|
||||
|
||||
c []
|
||||
i
|
||||
#c j
|
||||
- j
|
||||
if i < j
|
||||
c.i d 1
|
||||
c.j c.i 1
|
||||
d c.j
|
||||
- j
|
||||
+ i
|
||||
goif
|
||||
endif
|
||||
c []
|
||||
11
Task/Reverse-a-string/Symsyn/reverse-a-string-2.symsyn
Normal file
11
Task/Reverse-a-string/Symsyn/reverse-a-string-2.symsyn
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
c : 'abcdefghijklmnopqrstuvwxyz'
|
||||
|
||||
c []
|
||||
$s
|
||||
#c j
|
||||
if j > 0
|
||||
- j
|
||||
+ c.j $s 1
|
||||
goif
|
||||
endif
|
||||
$s []
|
||||
Loading…
Add table
Add a link
Reference in a new issue