Substring/Top and tail: Difference between revisions

Content added Content deleted
No edit summary
(Logo)
Line 489: Line 489:
julia> chop("My String") #alternate remove last character
julia> chop("My String") #alternate remove last character
"My Strin"</lang>
"My Strin"</lang>

=={{header|Logo}}==
<lang logo>make "s "|My string|
print butfirst :s
print butlast :s
print butfirst butlast :s</lang>


=={{header|Lua}}==
=={{header|Lua}}==