Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Reverse-a-string/XBS/reverse-a-string-1.xbs
Normal file
1
Task/Reverse-a-string/XBS/reverse-a-string-1.xbs
Normal file
|
|
@ -0,0 +1 @@
|
|||
log(string.reverse("Hello"))
|
||||
1
Task/Reverse-a-string/XBS/reverse-a-string-2.xbs
Normal file
1
Task/Reverse-a-string/XBS/reverse-a-string-2.xbs
Normal file
|
|
@ -0,0 +1 @@
|
|||
log("Hello"->split("")->reverse()->join(""));
|
||||
8
Task/Reverse-a-string/XBS/reverse-a-string-3.xbs
Normal file
8
Task/Reverse-a-string/XBS/reverse-a-string-3.xbs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
func ReverseString(String){
|
||||
set Final = "";
|
||||
for(i=?String-1;0;-1){
|
||||
Final+=String[i];
|
||||
}
|
||||
send Final;
|
||||
}
|
||||
log(ReverseString("Hello"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue