Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
local fn FindLongest( test as CFArrayRef ) as CFStringRef
|
||||
'~'1
|
||||
CFStringRef s, t1 = @"", t2 = @""
|
||||
|
||||
for s in test
|
||||
if ( len(s) > len(t1) )
|
||||
t1 = s
|
||||
t2 = fn StringWithFormat( @"%@\n", s )
|
||||
else
|
||||
if ( len(s) == len(t1) )
|
||||
t2 = fn StringWithFormat( @"%@%@\n", t2, s )
|
||||
end if
|
||||
end if
|
||||
next
|
||||
end fn = t2
|
||||
|
||||
print fn FindLongest( @[@"a", @"bb", @"ccc", @"ddd", @"ee", @"f", @"ggg"] )
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue