diff options
author | Samantha McVey <samantham@posteo.net> | 2017-07-10 21:40:05 -0700 |
---|---|---|
committer | Samantha McVey <samantham@posteo.net> | 2017-07-10 21:40:26 -0700 |
commit | df6f8630a373806bac5016bd7bebd25c140557b6 (patch) | |
tree | 3e0b254eed900dd47f3c840a646f60c7e5419f32 | |
parent | ade91a6fd955841d2573753c419ffec44f1ba596 (diff) |
[perl6] Lists are not Arrays. Make this clear
Lists are immutable while Arrays are mutable. Arrays are
which have the @ sigil.
-rw-r--r-- | perl6.html.markdown | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown index d0ccdc9a..44960347 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -54,10 +54,11 @@ my $forced-bool = so $str; # And you can use the prefix `so` operator # which turns its operand into a Bool ``` -### Lists +### Arrays and Lists ```perl6 -# Lists represent multiple values. Their name start with `@`. +# Arrays represent multiple values. Their name start with `@`. +# Lists are similar but are an immutable type my @array = 'a', 'b', 'c'; # equivalent to : |