Jump to content

Substring/Top and tail: Difference between revisions

m
→‎{{header|Tcl}}: select a more interesting word to modify
(→‎Tcl: Added implementation)
m (→‎{{header|Tcl}}: select a more interesting word to modify)
Line 170:
=={{header|Tcl}}==
<lang tcl>puts [string range "knight" 1 end]; # strip first character
puts [string range "sockswrite" 0 end-1]; # strip last character
puts [string range "brooms" 1 end-1]; # strip both first and last characters</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.