Anonymous user
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 "
puts [string range "brooms" 1 end-1]; # strip both first and last characters</lang>
|