Substring/Top and tail: Difference between revisions
m
→{{header|EasyLang}}
(3 intermediate revisions by 3 users not shown) | |||
Line 734:
=={{header|EasyLang}}==
<syntaxhighlight
print substr
print substr
print substr
</syntaxhighlight>
{{out}}
<pre>
Easylan
asylang
asylan
</pre>
Line 2,160:
=={{header|RPL}}==
Basic RPL:
"Knight" 2 OVER SIZE SUB
"Socks" 1 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}}
<pre>
Line 2,534 ⟶ 2,538:
{{libheader|Wren-str}}
As Wren's string slicing and other built-in methods generally work at the byte level, we use the above module for this task which works at the code-point level.
<syntaxhighlight lang="
var a = "Beyoncé"
|