mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[Raku/en] Fix typo & grammar, Remove trailing whitespace, Update IRC (#4224)
#raku has moved to irc.libera.chat
This commit is contained in:
parent
1524547b4d
commit
624c13d18d
@ -644,7 +644,7 @@ say @natural[^10]; # OUTPUT: «1 2 3 4 5 6 7 8 9 10», doesn't run out of mem
|
|||||||
|
|
||||||
# NOTE: when reading an infinite list, Raku will "reify" the elements
|
# NOTE: when reading an infinite list, Raku will "reify" the elements
|
||||||
# it needs, then keep them in memory. They won't be calculated more than once.
|
# it needs, then keep them in memory. They won't be calculated more than once.
|
||||||
# It also will never calculate more elements that are needed.
|
# It also will never calculate more elements than that are needed.
|
||||||
|
|
||||||
# An array subscript can also be a closure. It'll be called with the array's
|
# An array subscript can also be a closure. It'll be called with the array's
|
||||||
# length as the argument. The following two examples are equivalent:
|
# length as the argument. The following two examples are equivalent:
|
||||||
@ -1853,7 +1853,7 @@ my @fibv2 = 1, 1, { $^a + $^b } ... *;
|
|||||||
# In the example we use a range as an index to access the sequence. However,
|
# In the example we use a range as an index to access the sequence. However,
|
||||||
# it's worth noting that for ranges, once reified, elements aren't re-calculated.
|
# it's worth noting that for ranges, once reified, elements aren't re-calculated.
|
||||||
# That's why, for instance, `@primes[^100]` will take a long time the first
|
# That's why, for instance, `@primes[^100]` will take a long time the first
|
||||||
# time you print it but then it will be instateneous.
|
# time you print it but then it will be instantaneous.
|
||||||
say @fibv0[^10]; # OUTPUT: «1 1 2 3 5 8 13 21 34 55»
|
say @fibv0[^10]; # OUTPUT: «1 1 2 3 5 8 13 21 34 55»
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
@ -2262,7 +2262,7 @@ This information may be a bit older but there are many great examples and
|
|||||||
explanations. Posts stopped at the end of 2015 when the language was declared
|
explanations. Posts stopped at the end of 2015 when the language was declared
|
||||||
stable and `Raku v6.c` was released.
|
stable and `Raku v6.c` was released.
|
||||||
|
|
||||||
- Come along on `#raku` at [`irc.freenode.net`](https://webchat.freenode.net/?channels=#raku). The folks here are
|
- Come along on `#raku` at [`irc.libera.chat`](https://web.libera.chat/?channel=#raku). The folks here are
|
||||||
always helpful.
|
always helpful.
|
||||||
|
|
||||||
- Check the [source of Raku's functions and
|
- Check the [source of Raku's functions and
|
||||||
|
Loading…
Reference in New Issue
Block a user