Odd word problem: Difference between revisions
Reverse String function refactored for efficiency
(Reverse String function refactored for efficiency) |
|||
Line 1,015:
local fn ReverseString( string as CFStringRef ) as CFStringRef
CFStringRef
CFStringRef
mid( mutStr, i, 1 ) = chr2
mid( mutStr, length-i-1, 1 ) = chr1
▲ next
end fn = mutStr
Line 1,056 ⟶ 1,053:
print fn OddWordTask( @"what,is,the;meaning,of:life." )
print fn OddWordTask( @"we,are;not,in,kansas;any,more." )
HandleEvents
|