RosettaCodeData/Task/Substring-Top-and-tail/SNOBOL4/substring-top-and-tail.sno

4 lines
209 B
Plaintext

"knight" len(1) rem . output ;* strip first character
"socks" rtab(1) . output ;* strip last character
"brooms" len(1) rtab(1) . output ;* strip both first and last characters