[perl6] Lists are not Arrays. Make this clear

Lists are immutable while Arrays are mutable. Arrays are
which have the @ sigil.
This commit is contained in:
Samantha McVey 2017-07-10 21:40:05 -07:00
parent ade91a6fd9
commit df6f8630a3
No known key found for this signature in database
GPG Key ID: A68DF012C3881D62

View File

@ -54,10 +54,11 @@ my $forced-bool = so $str; # And you can use the prefix `so` operator
# which turns its operand into a Bool # which turns its operand into a Bool
``` ```
### Lists ### Arrays and Lists
```perl6 ```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'; my @array = 'a', 'b', 'c';
# equivalent to : # equivalent to :