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
|
|
@ -0,0 +1,16 @@
|
|||
function palindrome txt exact
|
||||
if exact is empty or exact is not false then
|
||||
set caseSensitive to true --default is false
|
||||
else
|
||||
replace space with empty in txt
|
||||
put lower(txt) into txt
|
||||
end if
|
||||
return txt is reverse(txt)
|
||||
end palindrome
|
||||
|
||||
function reverse str
|
||||
repeat with i = the length of str down to 1
|
||||
put byte i of str after revstr
|
||||
end repeat
|
||||
return revstr
|
||||
end reverse
|
||||
Loading…
Add table
Add a link
Reference in a new issue