Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,15 +0,0 @@
|
|||
function strip_first(sequence s)
|
||||
return s[2..$]
|
||||
end function
|
||||
|
||||
function strip_last(sequence s)
|
||||
return s[1..$-1]
|
||||
end function
|
||||
|
||||
function strip_both(sequence s)
|
||||
return s[2..$-1]
|
||||
end function
|
||||
|
||||
puts(1, strip_first("knight")) -- strip first character
|
||||
puts(1, strip_last("write")) -- strip last character
|
||||
puts(1, strip_both("brooms")) -- strip both first and last characters
|
||||
Loading…
Add table
Add a link
Reference in a new issue