Jump to content

Substring/Top and tail: Difference between revisions

(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}}==
1,151

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.