Substring/Top and tail: Difference between revisions
→{{header|RPL}}
(sed: add hint) |
|||
Line 2,088:
substr(aString,2,len(aString)-2) + nl
</syntaxhighlight>
=={{header|RPL}}==
{{trans|Python}}
"Knight" 2 OVER SIZE SUB
"Socks" 1 OVER SIZE 1 - SUB
"Brooms" 2 OVER SIZE 1 - SUB
{{out}}
<pre>
3: night
2: Sock
1: room
</pre>
=={{header|Ruby}}==
|