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
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