Content deleted Content added
→CharAt: Added Perl 6 snippet |
→Concatenation: Add Perl 5 and Perl 6 snippets |
||
Line 522:
;; Example in common lisp
(concatenate 'string "abc " "def " "ghi") ; returns "abc def ghi"
</syntaxhighlight>
<syntaxhighlight lang="perl">
# Example in Perl 5
"abc" ~ "def"; # returns "abcdef"
"Perl " ~ 5; # returns "Perl 5"
</syntaxhighlight>
<syntaxhighlight lang="perl6">
# Example in Perl 6
"abc" ~ "def"; # returns "abcdef"
"Perl " ~ 6; # returns "Perl 6"
</syntaxhighlight>
<!-- endsection -->
|