Substring/Top and tail: Difference between revisions
Content added Content deleted
(→RPL: HP-48+ version) |
|||
Line 2,160: | Line 2,160: | ||
=={{header|RPL}}== |
=={{header|RPL}}== |
||
Basic RPL: |
|||
{{trans|Python}} |
|||
"Knight" 2 OVER SIZE SUB |
"Knight" 2 OVER SIZE SUB |
||
"Socks" 1 OVER SIZE 1 - SUB |
"Socks" 1 OVER SIZE 1 - SUB |
||
"Brooms" 2 OVER SIZE 1 - SUB |
"Brooms" 2 OVER SIZE 1 - SUB |
||
From HP-48 versions, one can also do this way: |
|||
"Knight" TAIL |
|||
"Socks" REVLIST TAIL REVLIST |
|||
"Brooms" TAIL REVLIST TAIL REVLIST |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |