Comparison of programming languages (string functions): Difference between revisions

Content deleted Content added
join: list.join same as Python c.s.
Loudogni (talk | contribs)
CharAt: Added Perl 6 snippet
Line 186:
// Example in C# and Ya
"Hello, World"[2]; // 'l'
</syntaxhighlight>
 
<syntaxhighlight lang="perl6">
# Examples in Perl 6
"Hello, World".substr(0, 1) # 'H'
"Hello World".substr(*-1, *) # 'd'
</syntaxhighlight>