Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Substring-Top-and-tail/Eero/substring-top-and-tail.eero
Normal file
18
Task/Substring-Top-and-tail/Eero/substring-top-and-tail.eero
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
int main()
|
||||
autoreleasepool
|
||||
|
||||
s := 'knight'
|
||||
Log( '%@', s[1 .. s.length-1] ) // strip first character
|
||||
|
||||
s = 'socks'
|
||||
Log( '%@', s[0 .. s.length-2] ) // strip last character
|
||||
|
||||
s = 'brooms'
|
||||
Log( '%@', s[1 .. s.length-2] ) // strip both first and last characters
|
||||
|
||||
s = 'Δημοτική'
|
||||
Log( '%@', s[1 .. s.length-2] ) // strip both first and last characters
|
||||
|
||||
return 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue