diff --git a/bg/index.html b/bg/index.html index 32cd751..b0c6c7e 100644 --- a/bg/index.html +++ b/bg/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5417,7 +5419,7 @@

15. Общността

diff --git a/de/index.html b/de/index.html index 140c754..5e8ba63 100644 --- a/de/index.html +++ b/de/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -4803,7 +4805,7 @@

15. Die Community

diff --git a/es/index.html b/es/index.html index c6990cf..2efb3ce 100644 --- a/es/index.html +++ b/es/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5504,7 +5506,7 @@

16. La Comunidad

diff --git a/fr/index.html b/fr/index.html index 79e7b1c..c1b61ad 100644 --- a/fr/index.html +++ b/fr/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5149,7 +5151,7 @@

16. La communauté

diff --git a/id/index.html b/id/index.html index f5886e0..e836c8a 100644 --- a/id/index.html +++ b/id/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5471,7 +5473,7 @@

16. Komunitas

diff --git a/index.html b/index.html index faeec4a..69c2e56 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -823,16 +825,16 @@

1.3. Installing Raku

-
mkdir ~/rakudo && cd $_
-curl -LJO https://rakudo.org/latest/star/src
-tar -xzf rakudo-star-*.tar.gz
-mv rakudo-star-*/* .
-rm -fr rakudo-star-*
+
mkdir ~/rakudo && cd $_
+curl -LJO https://rakudo.org/latest/star/src
+tar -xzf rakudo-star-*.tar.gz
+mv rakudo-star-*/* .
+rm -fr rakudo-star-*
 
-./bin/rstar install
+./bin/rstar install
 
-echo "export PATH=$(pwd)/bin/:$(pwd)/share/perl6/site/bin:$(pwd)/share/perl6/vendor/bin:$(pwd)/share/perl6/core/bin:\$PATH" >> ~/.bashrc
-source ~/.bashrc
+echo "export PATH=$(pwd)/bin/:$(pwd)/share/perl6/site/bin:$(pwd)/share/perl6/vendor/bin:$(pwd)/share/perl6/core/bin:\$PATH" >> ~/.bashrc +source ~/.bashrc
@@ -944,17 +946,11 @@

1.5. Editors

a decent text editor that recognizes Raku syntax.

-

Comma is the Integrated Development Environment designed specifically for Raku.

-
-
-

The community also uses frequently the following editors:

+

The community uses frequently the following editors:

@@ -976,7 +978,7 @@

1.6. Hello World!

-
say 'hello world';
+
say 'hello world';
@@ -984,7 +986,7 @@

1.6. Hello World!

-
'hello world'.say;
+
'hello world'.say;
@@ -999,7 +1001,7 @@

1.7. Syntax overview

-
say "Hello" if True;
+
say "Hello" if True;
 say "World" if False;
@@ -1013,7 +1015,7 @@

1.7. Syntax overview

-
{
+
{
     say "First statement in the block.";
     say "Second statement in the block.";
 }
@@ -1177,7 +1179,7 @@

1.7.2. Comments

Single line:

-
# This is a single line comment
+
# This is a single line comment
@@ -1185,7 +1187,7 @@

1.7.2. Comments

Embedded:

-
say #`(This is an embedded comment) "Hello World."
+
say #`(This is an embedded comment) "Hello World."
@@ -1193,7 +1195,7 @@

1.7.2. Comments

Multi line:

-
=begin comment
+
=begin comment
 This is a multi line comment.
 Comment 1
 Comment 2
@@ -1224,7 +1226,7 @@ 

1.7.3. Quotes

-
say 'Hello World';   # Hello World
+
say 'Hello World';   # Hello World
 say "Hello World";   # Hello World
 say "Don't";         # Don't
 my $name = 'John Doe';
@@ -1789,7 +1791,7 @@ 

3.1. Scalars

-
# String
+
# String
 my $name = 'John Doe';
 say $name;
 
@@ -1804,7 +1806,7 @@ 

3.1. Scalars

String
-
my $name = 'John Doe';
+
my $name = 'John Doe';
 say $name.uc;
 say $name.chars;
 say $name.flip;
@@ -1812,7 +1814,7 @@

3.1. Scalars

-
JOHN DOE
+
JOHN DOE
 8
 eoD nhoJ
@@ -1832,13 +1834,13 @@

3.1. Scalars

Integer
-
my $age = 17;
+
my $age = 17;
 say $age.is-prime;
-
True
+
True
@@ -1856,7 +1858,7 @@

3.1. Scalars

Rational Number
-
my $age = 2.3;
+
my $age = 2.3;
 say $age.numerator;
 say $age.denominator;
 say $age.nude;
@@ -1864,7 +1866,7 @@

3.1. Scalars

-
23
+
23
 10
 (23 10)
@@ -1889,7 +1891,7 @@

3.2. Arrays

-
my @animals = 'camel','llama','owl';
+
my @animals = 'camel','llama','owl';
 say @animals;
@@ -1911,7 +1913,7 @@

3.2. Arrays

Script
-
my @animals = 'camel','vicuña','llama';
+
my @animals = 'camel','vicuña','llama';
 say "The zoo contains " ~ @animals.elems ~ " animals";
 say "The animals are: " ~ @animals;
 say "I will adopt an owl for the zoo";
@@ -1927,7 +1929,7 @@ 

3.2. Arrays

Output
-
The zoo contains 3 animals
+
The zoo contains 3 animals
 The animals are: camel vicuña llama
 I will adopt an owl for the zoo
 Now my zoo has: camel vicuña llama owl
@@ -1952,7 +1954,7 @@ 

3.2.1. Fixed-size arrays

-
my @array;
+
my @array;
@@ -1968,7 +1970,7 @@

3.2.1. Fixed-size arrays

-
my @array[3];
+
my @array[3];
@@ -1976,7 +1978,7 @@

3.2.1. Fixed-size arrays

-
my @array[3];
+
my @array[3];
 @array[0] = "first value";
 @array[1] = "second value";
 @array[2] = "third value";
@@ -1987,7 +1989,7 @@

3.2.1. Fixed-size arrays

-
my @array[3];
+
my @array[3];
 @array[0] = "first value";
 @array[1] = "second value";
 @array[2] = "third value";
@@ -1996,7 +1998,7 @@ 

3.2.1. Fixed-size arrays

-
Index 3 for dimension 1 out of range (must be 0..2)
+
Index 3 for dimension 1 out of range (must be 0..2)
@@ -2008,7 +2010,7 @@

3.2.2. Multidimensional arrays

-
my @tbl[3;2];
+
my @tbl[3;2];
@@ -2020,7 +2022,7 @@

3.2.2. Multidimensional arrays

-
my @tbl[3;2];
+
my @tbl[3;2];
 @tbl[0;0] = 1;
 @tbl[0;1] = "x";
 @tbl[1;0] = 2;
@@ -2032,13 +2034,13 @@ 

3.2.2. Multidimensional arrays

-
[[1 x] [2 y] [3 z]]
+
[[1 x] [2 y] [3 z]]
Visual representation of the array:
-
[1 x]
+
[1 x]
 [2 y]
 [3 z]
@@ -2062,14 +2064,14 @@

3.3. Hashes

A Hash is a set of Key/Value pairs.
-
my %capitals = 'UK','London','Germany','Berlin';
+
my %capitals = 'UK','London','Germany','Berlin';
 say %capitals;
Another succinct way of filling the hash:
-
my %capitals = UK => 'London', Germany => 'Berlin';
+
my %capitals = UK => 'London', Germany => 'Berlin';
 say %capitals;
@@ -2079,7 +2081,7 @@

3.3. Hashes

Script
-
my %capitals = UK => 'London', Germany => 'Berlin';
+
my %capitals = UK => 'London', Germany => 'Berlin';
 %capitals.push: (France => 'Paris');
 say %capitals.kv;
 say %capitals.keys;
@@ -2090,7 +2092,7 @@ 

3.3. Hashes

Output
-
(France Paris Germany Berlin UK London)
+
(France Paris Germany Berlin UK London)
 (France Germany UK)
 (Paris Berlin London)
 The capital of France is: Paris
@@ -2136,7 +2138,7 @@

3.4. Types

-
my $var = 'Text';
+
my $var = 'Text';
 say $var;
 say $var.WHAT;
 
@@ -2157,7 +2159,7 @@ 

3.4. Types

-
my Int $var = 'Text';
+
my Int $var = 'Text';
 say $var;
 say $var.WHAT;
@@ -2178,7 +2180,7 @@

3.4. Types

Arrays and hashes can also be statically typed:
-
my Int @array = 1,2,3;
+
my Int @array = 1,2,3;
 say @array;
 say @array.WHAT;
 
@@ -2266,7 +2268,7 @@ 

3.5. Introspection

-
my Int $var;
+
my Int $var;
 say $var.WHAT;    # (Int)
 my $var2;
 say $var2.WHAT;   # (Any)
@@ -2297,7 +2299,7 @@ 

3.6. Scoping

-
my $var=1;
+
my $var=1;
@@ -2310,7 +2312,7 @@

3.6. Scoping

-
{
+
{
   my Str $var = 'Text';
   say $var;   # is accessible
 }
@@ -2322,7 +2324,7 @@ 

3.6. Scoping

-
{
+
{
   my Str $var = 'Text';
   say $var;
 }
@@ -2339,7 +2341,7 @@ 

3.7. Assignment vs. Binding

-
my Int $var = 123;
+
my Int $var = 123;
 say $var;
@@ -2349,7 +2351,7 @@

3.7. Assignment vs. Binding

Assignment
-
my Int $var = 123;
+
my Int $var = 123;
 say $var;
 $var = 999;
 say $var;
@@ -2358,7 +2360,7 @@

3.7. Assignment vs. Binding

Output
-
123
+
123
 999
@@ -2369,7 +2371,7 @@

3.7. Assignment vs. Binding

Binding
-
my Int $var := 123;
+
my Int $var := 123;
 say $var;
 $var = 999;
 say $var;
@@ -2378,14 +2380,14 @@

3.7. Assignment vs. Binding

Output
-
123
+
123
 Cannot assign to an immutable value
Variables can also be bound to other variables:
-
my $a;
+
my $a;
 my $b;
 $b := $a;
 $a = 7;
@@ -2397,7 +2399,7 @@ 

3.7. Assignment vs. Binding

Output
-
7
+
7
 8
@@ -2431,7 +2433,7 @@

4. Functions and mutators

Script
-
 1
+
 1
  2
  3
  4
@@ -2456,7 +2458,7 @@ 

4. Functions and mutators

Output
-
[7 2 4 9 11 3 99] #1
+
[7 2 4 9 11 3 99] #1
 (2 3 4 7 9 11 99) #2
 [7 2 4 9 11 3 99] #3
 [2 3 4 7 9 11 99] #4
@@ -2497,7 +2499,7 @@

5.1. if

-
my $age = 19;
+
my $age = 19;
 
 if $age > 18 {
   say 'Welcome'
@@ -2510,7 +2512,7 @@ 

5.1. if

-
my $age = 19;
+
my $age = 19;
 
 say 'Welcome' if $age > 18;
@@ -2530,7 +2532,7 @@

5.1. if

-
# run the same code for different values of the variable
+
# run the same code for different values of the variable
 my $number-of-seats = 9;
 
 if $number-of-seats <= 5 {
@@ -2553,7 +2555,7 @@ 

5.2. unless

-
my $clean-shoes = False;
+
my $clean-shoes = False;
 
 if not $clean-shoes {
   say 'Clean your shoes'
@@ -2565,7 +2567,7 @@ 

5.2. unless

-
my $clean-shoes = False;
+
my $clean-shoes = False;
 
 unless $clean-shoes {
   say 'Clean your shoes'
@@ -2589,7 +2591,7 @@ 

5.3. with

-
my Int $var=1;
+
my Int $var=1;
 
 with $var {
   say 'Hello'
@@ -2601,7 +2603,7 @@ 

5.3. with

-
my Int $var;
+
my Int $var;
 
 with $var {
   say 'Hello'
@@ -2623,7 +2625,7 @@ 

5.4. for

-
my @array = 1,2,3;
+
my @array = 1,2,3;
 
 for @array -> $array-item {
   say $array-item * 100
@@ -2642,7 +2644,7 @@ 

5.5. given

-
my $var = 42;
+
my $var = 42;
 
 given $var {
     when 0..50 { say 'Less than or equal to 50'}
@@ -2660,7 +2662,7 @@ 

5.5. given

-
my $var = 42;
+
my $var = 42;
 
 given $var {
     when 0..50 { say 'Less than or equal to 50';proceed}
@@ -2684,7 +2686,7 @@ 

5.6. loop

-
loop (my $i = 0; $i < 5; $i++) {
+
loop (my $i = 0; $i < 5; $i++) {
   say "The current number is $i"
 }
@@ -2719,7 +2721,7 @@

6.1.1. say

-
say 'Hello Mam.';
+
say 'Hello Mam.';
 say 'Hello Sir.';
@@ -2743,7 +2745,7 @@

6.1.3. get

-
my $name;
+
my $name;
 
 say "Hi, what's your name?";
 $name = get;
@@ -2766,7 +2768,7 @@ 

6.1.4. prompt

-
my $name = prompt "Hi, what's your name? ";
+
my $name = prompt "Hi, what's your name? ";
 
 say "Dear $name welcome to Raku";
@@ -2792,7 +2794,7 @@

6.2. Running Shell Commands

Run this if you’re on Linux/macOS
-
my $name = 'Neo';
+
my $name = 'Neo';
 run 'echo', "hello $name";
 shell "ls";
@@ -2800,7 +2802,7 @@

6.2. Running Shell Commands

Run this if you’re on Windows
-
shell "dir";
+
shell "dir";
@@ -2825,7 +2827,7 @@

6.3.1. slurp

datafile.txt
-
John 9
+
John 9
 Johnnie 7
 Jane 8
 Joanna 7
@@ -2833,7 +2835,7 @@

6.3.1. slurp

-
my $data = slurp "datafile.txt";
+
my $data = slurp "datafile.txt";
 say $data;
@@ -2845,7 +2847,7 @@

6.3.2. spurt

-
my $newdata = "New scores:
+
my $newdata = "New scores:
 Paul 10
 Paulie 9
 Paulo 11";
@@ -2865,7 +2867,7 @@ 

6.4. Working with files and directo

-
say dir;                # List files and folders in the current directory
+
say dir;                # List files and folders in the current directory
 say dir "/Documents";   # List files and folders in the specified directory
@@ -2874,7 +2876,7 @@

6.4. Working with files and directo

-
mkdir "newfolder";
+
mkdir "newfolder";
 rmdir "newfolder";
@@ -2890,7 +2892,7 @@

6.4. Working with files and directo

-
say "script123.raku".IO.e;
+
say "script123.raku".IO.e;
 say "folder123".IO.e;
 
 say "script123.raku".IO.d;
@@ -2948,7 +2950,7 @@ 

7.1. Definition

-
sub alien-greeting {
+
sub alien-greeting {
   say "Hello earthlings";
 }
 
@@ -2971,7 +2973,7 @@ 

7.2. Signature

-
sub say-hello (Str $name) {
+
sub say-hello (Str $name) {
     say "Hello " ~ $name ~ "!!!!"
 }
 say-hello "Paul";
@@ -2987,7 +2989,7 @@ 

7.3. Multiple dispatch

-
multi greet($name) {
+
multi greet($name) {
     say "Good morning $name";
 }
 multi greet($name, $title) {
@@ -3022,7 +3024,7 @@ 

7.4. Default and Optional Parameters
-
sub say-hello($name?) {
+
sub say-hello($name?) {
   with $name { say "Hello " ~ $name }
   else { say "Hello Human" }
 }
@@ -3036,7 +3038,7 @@ 

7.4. Default and Optional Parameters
-
sub say-hello($name="Matt") {
+
sub say-hello($name="Matt") {
   say "Hello " ~ $name;
 }
 say-hello;
@@ -3058,7 +3060,7 @@ 

7.5. Returning values

Implicit return
-
sub squared ($x) {
+
sub squared ($x) {
   $x ** 2;
 }
 say "7 squared is equal to " ~ squared(7);
@@ -3071,7 +3073,7 @@

7.5. Returning values

Explicit return
-
sub squared ($x) {
+
sub squared ($x) {
   return $x ** 2;
 }
 say "7 squared is equal to " ~ squared(7);
@@ -3089,7 +3091,7 @@

7.5.1. Restricting return values

Indicating return type
-
sub squared ($x --> Int) {
+
sub squared ($x --> Int) {
   return $x ** 2;
 }
 say "1.2 squared is equal to " ~ squared(1.2);
@@ -3100,7 +3102,7 @@

7.5.1. Restricting return values

-
Type check failed for return value; expected Int but got Rat (1.44)
+
Type check failed for return value; expected Int but got Rat (1.44)
@@ -3126,7 +3128,7 @@

7.5.1. Restricting return values

-
sub squared ($x --> Int:D) {
+
sub squared ($x --> Int:D) {
   return $x ** 2;
 }
 say "1.2 squared is equal to " ~ squared(1.2);
@@ -3183,7 +3185,7 @@

8.1. Functions are first-class citi
Script
-
my @array = <1 2 3 4 5>;
+
my @array = <1 2 3 4 5>;
 sub squared($x) {
   $x ** 2
 }
@@ -3193,7 +3195,7 @@ 

8.1. Functions are first-class citi
Output
-
(1 4 9 16 25)
+
(1 4 9 16 25)
@@ -3217,7 +3219,7 @@

8.2. Anonymous functions

-
my @array = <1 2 3 4 5>;
+
my @array = <1 2 3 4 5>;
 say map(-> $x {$x ** 2},@array);
@@ -3231,7 +3233,7 @@

8.2. Anonymous functions

A pointy block may also be used to assign functions to variables:
-
my $squared = -> $x {
+
my $squared = -> $x {
   $x ** 2
 }
 say $squared(9);
@@ -3251,7 +3253,7 @@

8.3. Chaining

-
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
+
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
 my @final-array = reverse(sort(unique(@array)));
 say @final-array;
@@ -3264,7 +3266,7 @@

8.3. Chaining

-
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
+
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
 my @final-array = @array.unique.sort.reverse;
 say @final-array;
@@ -3282,7 +3284,7 @@

8.4. Feed Operator

Forward Feed
-
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
+
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
 @array ==> unique()
        ==> sort()
        ==> reverse()
@@ -3293,7 +3295,7 @@ 

8.4. Feed Operator

Explanation
-
Start with `@array` then return a list of unique elements
+
Start with `@array` then return a list of unique elements
                     then sort it
                     then reverse it
                     then store the result in @final-array
@@ -3305,7 +3307,7 @@

8.4. Feed Operator

Backward Feed
-
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
+
my @array = <7 8 9 0 1 2 4 3 5 6 7 8 9>;
 my @final-array-v2 <== reverse()
                    <== sort()
                    <== unique()
@@ -3326,7 +3328,7 @@ 

8.5. Hyper operator

-
my @array = <0 1 2 3 4 5 6 7 8 9 10>;
+
my @array = <0 1 2 3 4 5 6 7 8 9 10>;
 sub is-even($var) { $var %% 2 };
 
 say @array>>.is-prime;
@@ -3364,7 +3366,7 @@ 

8.6. Junctions

-
my $var = 2;
+
my $var = 2;
 if $var == 1|2|3 {
   say "The variable is 1 or 2 or 3"
 }
@@ -3404,7 +3406,7 @@

8.7. Lazy Lists

Simple lazy list
-
my $lazylist = (1 ... 10);
+
my $lazylist = (1 ... 10);
 say $lazylist;
@@ -3415,7 +3417,7 @@

8.7. Lazy Lists

Infinite lazy list
-
my $lazylist = (1 ... Inf);
+
my $lazylist = (1 ... Inf);
 say $lazylist;
@@ -3425,7 +3427,7 @@

8.7. Lazy Lists

Lazy list built using a deduced generator
-
my $lazylist = (0,2 ... 10);
+
my $lazylist = (0,2 ... 10);
 say $lazylist;
@@ -3437,7 +3439,7 @@

8.7. Lazy Lists

Lazy list built using a defined generator
-
my $lazylist = (0, { $_ + 3 } ... 12);
+
my $lazylist = (0, { $_ + 3 } ... 12);
 say $lazylist;
@@ -3464,14 +3466,14 @@

8.7. Lazy Lists

This will not stop the generator
-
my $lazylist = (0, { $_ + 3 } ... 10);
+
my $lazylist = (0, { $_ + 3 } ... 10);
 say $lazylist;
This will stop the generator
-
my $lazylist = (0, { $_ + 3 } ...^ * > 10);
+
my $lazylist = (0, { $_ + 3 } ...^ * > 10);
 say $lazylist;
@@ -3487,7 +3489,7 @@

8.8. Closures

-
sub generate-greeting {
+
sub generate-greeting {
     my $name = "John Doe";
     sub greeting {
       say "Good Morning $name";
@@ -3527,7 +3529,7 @@ 

8.8. Closures

-
sub greeting-generator($period) {
+
sub greeting-generator($period) {
   return sub ($name) {
     return "Good $period $name"
   }
@@ -3603,7 +3605,7 @@ 

9.1. Introduction

-
class Human {
+
class Human {
   has $.name;
   has $.age;
   has $.sex;
@@ -3628,7 +3630,7 @@ 

9.1. Introduction

-
my class Human {
+
my class Human {
 
 }
@@ -3647,14 +3649,14 @@

9.2. Encapsulation

Direct access to the variable:
-
my $var = 7;
+
my $var = 7;
 say $var;
Encapsulation:
-
my $var = 7;
+
my $var = 7;
 sub sayvar {
   $var;
 }
@@ -3687,7 +3689,7 @@ 

9.2. Encapsulation

-
class Human {
+
class Human {
   has $!name;
   has $!age;
   has $!sex;
@@ -3732,7 +3734,7 @@ 

9.3. Named vs. Positional Parameters
-
class Human {
+
class Human {
   has $.name;
   has $.age;
   has $.sex;
@@ -3764,7 +3766,7 @@ 

9.4.1. Introduction

-
class Human {
+
class Human {
   has $.name;
   has $.age;
   has $.sex;
@@ -3828,7 +3830,7 @@ 

9.4.2. Private methods

-
method !iamprivate {
+
method !iamprivate {
   # code goes in here
 }
 
@@ -3850,7 +3852,7 @@ 

9.5. Class Attributes

-
class Human {
+
class Human {
   has $.name;
   my $.counter = 0;
   method new($name) {
@@ -3876,7 +3878,7 @@ 

9.6. Access Type

-
class Human {
+
class Human {
   has $.name;
   has $.age is rw;
 }
@@ -3913,7 +3915,7 @@ 

9.7.1. Introduction

-
class Human {
+
class Human {
   has $.name;
   has $.age;
 }
@@ -3934,7 +3936,7 @@ 

9.7.1. Introduction

-
class Human {
+
class Human {
   has $.name;
   has $.age;
 }
@@ -3966,7 +3968,7 @@ 

9.7.2. Overriding

-
class Human {
+
class Human {
   has $.name;
   has $.age;
   method introduce-yourself {
@@ -3991,7 +3993,7 @@ 

9.7.2. Overriding

-
class Human {
+
class Human {
   has $.name;
   has $.age;
   method introduce-yourself {
@@ -4035,7 +4037,7 @@ 

9.8. Multiple Inheritance

-
class bar-chart {
+
class bar-chart {
   has Int @.bar-values;
   method plot {
     say @.bar-values;
@@ -4068,7 +4070,7 @@ 

9.8. Multiple Inheritance

Output
-
Actual sales:
+
Actual sales:
 [10 9 11 8 7 10]
 Forecast sales:
 [9 8 10 7 6 9]
@@ -4093,7 +4095,7 @@ 

9.8. Multiple Inheritance

-
class bar-chart {
+
class bar-chart {
   has Int @.bar-values;
   method plot {
     say @.bar-values;
@@ -4130,7 +4132,7 @@ 

9.8. Multiple Inheritance

Output
-
Actual sales:
+
Actual sales:
 [10 9 11 8 7 10]
 Forecast sales:
 [9 8 10 7 6 9]
@@ -4151,7 +4153,7 @@ 

9.9. Roles

Let’s rewrite the multiple inheritance example using roles:
-
role bar-chart {
+
role bar-chart {
   has Int @.bar-values;
   method plot {
     say @.bar-values;
@@ -4195,7 +4197,7 @@ 

9.9. Roles

-
role bar-chart {
+
role bar-chart {
   has Int @.bar-values;
   method plot {
     say @.bar-values;
@@ -4228,7 +4230,7 @@ 

9.9. Roles

Output
-
===SORRY!===
+
===SORRY!===
 Method 'plot' must be resolved by class combo-chart because it exists in multiple roles (line-chart, bar-chart)
@@ -4248,7 +4250,7 @@

9.10. Introspection

-
class Human {
+
class Human {
   has Str $.name;
   has Int $.age;
   method introduce-yourself {
@@ -4341,7 +4343,7 @@ 

10.1. Catching Exceptions

-
my Str $name;
+
my Str $name;
 $name = "Joanna";
 say "Hello " ~ $name;
 say "How are you doing today?"
@@ -4350,7 +4352,7 @@

10.1. Catching Exceptions

Output
-
Hello Joanna
+
Hello Joanna
 How are you doing today?
@@ -4359,7 +4361,7 @@

10.1. Catching Exceptions

-
my Str $name;
+
my Str $name;
 $name = 123;
 say "Hello " ~ $name;
 say "How are you doing today?"
@@ -4368,7 +4370,7 @@

10.1. Catching Exceptions

Output
-
Type check failed in assignment to $name; expected Str but got Int
+
Type check failed in assignment to $name; expected Str but got Int
    in block <unit> at exceptions.raku:2
@@ -4380,7 +4382,7 @@

10.1. Catching Exceptions

-
my Str $name;
+
my Str $name;
 try {
   $name = 123;
   say "Hello " ~ $name;
@@ -4396,7 +4398,7 @@ 

10.1. Catching Exceptions

Output
-
Can you tell us your name again, we couldn't find it in the register.
+
Can you tell us your name again, we couldn't find it in the register.
 How are you doing today?
@@ -4405,7 +4407,7 @@

10.1. Catching Exceptions

-
try {
+
try {
   # code goes in here
   # if anything goes wrong, the script will enter the below CATCH block
   # if nothing goes wrong, the CATCH block will be ignored
@@ -4423,7 +4425,7 @@ 

10.1. Catching Exceptions

-
try {
+
try {
   # code goes in here
   # if anything goes wrong, the script will enter the below CATCH block
   # if nothing goes wrong, the CATCH block will be ignored
@@ -4456,14 +4458,14 @@ 

10.2. Throwing Exceptions

ad-hoc
-
my Int $age = 21;
+
my Int $age = 21;
 die "Error !";
typed
-
my Int $age = 21;
+
my Int $age = 21;
 X::AdHoc.new(payload => 'Error !').throw;
@@ -4502,7 +4504,7 @@

11. Regular Expressions

-
if 'enlightenment' ~~ m/ light / {
+
if 'enlightenment' ~~ m/ light / {
     say "enlightenment contains the word light";
 }
@@ -4542,7 +4544,7 @@

11.2. Matching characters

Backslash
-
if 'Temperature: 13' ~~ m/ \: / {
+
if 'Temperature: 13' ~~ m/ \: / {
     say "The string provided contains a colon :";
 }
@@ -4550,7 +4552,7 @@

11.2. Matching characters

Single quotes
-
if 'Age = 13' ~~ m/ '=' / {
+
if 'Age = 13' ~~ m/ '=' / {
     say "The string provided contains an equal character = ";
 }
@@ -4558,7 +4560,7 @@

11.2. Matching characters

Double quotes
-
if 'name@company.com' ~~ m/ "@" / {
+
if 'name@company.com' ~~ m/ "@" / {
     say "This is a valid email address because it contains an @ character";
 }
@@ -4630,7 +4632,7 @@

11.3. Matching categories of charact

-
if "John123" ~~ / \d / {
+
if "John123" ~~ / \d / {
   say "This is not a valid name, numbers are not allowed";
 } else {
   say "This is a valid name"
@@ -4654,7 +4656,7 @@ 

11.4. Unicode properties

-
if "Devanagari Numbers १२३" ~~ / <:N> / {
+
if "Devanagari Numbers १२३" ~~ / <:N> / {
   say "Contains a number";
 } else {
   say "Doesn't contain a number"
@@ -4682,7 +4684,7 @@ 

11.5. Wildcards

-
if 'abc' ~~ m/ a.c / {
+
if 'abc' ~~ m/ a.c / {
     say "Match";
 }
 if 'a2c' ~~ m/ a.c / {
@@ -4706,7 +4708,7 @@ 

11.6. Quantifiers

-
if 'ac' ~~ m/ a?c / {
+
if 'ac' ~~ m/ a?c / {
     say "Match";
 } else {
     say "No Match";
@@ -4723,7 +4725,7 @@ 

11.6. Quantifiers

-
if 'az' ~~ m/ a*z / {
+
if 'az' ~~ m/ a*z / {
     say "Match";
 } else {
     say "No Match";
@@ -4750,7 +4752,7 @@ 

11.6. Quantifiers

-
if 'az' ~~ m/ a+z / {
+
if 'az' ~~ m/ a+z / {
     say "Match";
 } else {
     say "No Match";
@@ -4782,7 +4784,7 @@ 

11.7. Match Results

Script
-
if 'Rakudo is a Perl 6 compiler' ~~ m/:s Perl 6/ {
+
if 'Rakudo is a Perl 6 compiler' ~~ m/:s Perl 6/ {
     say "The match is: " ~ $/;
     say "The string before the match is: " ~ $/.prematch;
     say "The string after the match is: " ~ $/.postmatch;
@@ -4794,7 +4796,7 @@ 

11.7. Match Results

Output
-
The match is: Perl 6
+
The match is: Perl 6
 The string before the match is: Rakudo is a
 The string after the match is: compiler
 The matching string starts at position: 12
@@ -4851,7 +4853,7 @@ 

11.8. Example

Script
-
my $email = 'john.doe@perl6.org';
+
my $email = 'john.doe@perl6.org';
 my $regex = / <:L>+\.<:L>+\@<:L+:N>+\.<:L>+ /;
 
 if $email ~~ $regex {
@@ -4905,7 +4907,7 @@ 

11.8. Example

Alternatively, a regex can be broken down into multiple named regexes
-
my $email = 'john.doe@perl6.org';
+
my $email = 'john.doe@perl6.org';
 my regex many-letters { <:L>+ };
 my regex dot { \. };
 my regex at { \@ };
@@ -4991,7 +4993,7 @@ 

12.1. Using Modules

-
use Digest::MD5;
+
use Digest::MD5;
 
 my $password = "password123";
 my $hashed-password = md5( $password );
@@ -5037,7 +5039,7 @@ 

13.1. Using Unicode

Let’s look at how we can output characters using Unicode
-
say "a";
+
say "a";
 say "\x0061";
 say "\c[LATIN SMALL LETTER A]";
@@ -5061,7 +5063,7 @@

13.1. Using Unicode

Now lets output a smiley
-
say "☺";
+
say "☺";
 say "\x263a";
 say "\c[WHITE SMILING FACE]";
@@ -5069,7 +5071,7 @@

13.1. Using Unicode

Another example combining two code points
-
say "á";
+
say "á";
 say "\x00e1";
 say "\x0061\x0301";
 say "\c[LATIN SMALL LETTER A WITH ACUTE]";
@@ -5091,7 +5093,7 @@

13.1. Using Unicode

Some of the methods that can be used:
-
say "á".NFC;
+
say "á".NFC;
 say "á".NFD;
 say "á".uniname;
@@ -5099,7 +5101,7 @@

13.1. Using Unicode

Output
-
NFC:0x<00e1>
+
NFC:0x<00e1>
 NFD:0x<0061 0301>
 LATIN SMALL LETTER A WITH ACUTE
@@ -5112,7 +5114,7 @@

13.1. Using Unicode

Unicode letters can be used as identifiers:
-
my  = 1;
+
my  = 1;
 ++;
 say ;
@@ -5120,7 +5122,7 @@

13.1. Using Unicode

Unicode can be used to do math:
-
my $var = 2 + ;
+
my $var = 2 + ;
 say $var;
@@ -5142,7 +5144,7 @@

13.2.1. Numbers

-
say (٤,٥,٦,1,2,3).sort; # (1 2 3 4 5 6)
+
say (٤,٥,٦,1,2,3).sort; # (1 2 3 4 5 6)
 say 1 + ٩;              # 10
@@ -5157,7 +5159,7 @@

13.2.2. Strings

Comparison
-
say 'a' cmp 'B'; # More
+
say 'a' cmp 'B'; # More
@@ -5173,7 +5175,7 @@
Comparison
-
say 'a' unicmp 'B'; # Less
+
say 'a' unicmp 'B'; # Less
@@ -5188,7 +5190,7 @@
Sorting
-
say ('a','b','c','D','E','F').sort;    # (D E F a b c)
+
say ('a','b','c','D','E','F').sort;    # (D E F a b c)
 say ('a','b','c','D','E','F').collate; # (a b c D E F)
@@ -5227,7 +5229,7 @@

14.1. Parallelism

14.1.1. Data Parallelism

-
my @array = 0..50000;                       # Array population
+
my @array = 0..50000;                       # Array population
 my @result = @array.map({ is-prime $_ });   # call is-prime for each array element
 say now - INIT now;                         # Output the time it took for the script to complete
@@ -5241,7 +5243,7 @@

14.1.1. Data Parallelism

Fortunately we can call is-prime on multiple array elements at the same time:
-
my @array = 0..50000;                           # Array population
+
my @array = 0..50000;                           # Array population
 my @result = @array.race.map({ is-prime $_ });  # call is-prime for each array element
 say now - INIT now;                             # Output the time it took to complete
@@ -5266,7 +5268,7 @@

14.1.1. Data Parallelism

race
-
my @array = 1..1000;
+
my @array = 1..1000;
 my @result = @array.race.map( {$_ + 1} );
 .say for @result;
@@ -5274,7 +5276,7 @@

14.1.1. Data Parallelism

hyper
-
my @array = 1..1000;
+
my @array = 1..1000;
 my @result = @array.hyper.map( {$_ + 1} );
 .say for @result;
@@ -5291,7 +5293,7 @@

14.1.1. Data Parallelism

14.1.2. Task Parallelism

-
my @array1 = 0..49999;
+
my @array1 = 0..49999;
 my @array2 = 2..50001;
 
 my @result1 = @array1.map( {is-prime($_ + 1)} );
@@ -5326,7 +5328,7 @@ 

14.1.2. Task Parallelism

Why not do both in parallel?
-
my @array1 = 0..49999;
+
my @array1 = 0..49999;
 my @array2 = 2..50001;
 
 my $promise1 = start @array1.map( {is-prime($_ + 1)} ).eager;
@@ -5418,21 +5420,21 @@ 

15.1. Calling a function

On Linux:
-
gcc -c -fpic ncitest.c
-gcc -shared -o libncitest.so ncitest.o
+
gcc -c -fpic ncitest.c
+gcc -shared -o libncitest.so ncitest.o
On Windows:
-
gcc -c ncitest.c
-gcc -shared -o ncitest.dll ncitest.o
+
gcc -c ncitest.c
+gcc -shared -o ncitest.dll ncitest.o
On macOS:
-
gcc -dynamiclib -o libncitest.dylib ncitest.c
+
gcc -dynamiclib -o libncitest.dylib ncitest.c
@@ -5442,7 +5444,7 @@

15.1. Calling a function

ncitest.raku
-
use NativeCall;
+
use NativeCall;
 
 constant LIBPATH = "$*CWD/ncitest";
 sub hellofromc() is native(LIBPATH) { * }
@@ -5482,7 +5484,7 @@ 

15.2. Renaming a function

ncitest.raku
-
use NativeCall;
+
use NativeCall;
 
 constant LIBPATH = "$*CWD/ncitest";
 sub hello() is native(LIBPATH) is symbol('hellofromc') { * }
@@ -5515,7 +5517,7 @@ 

15.3. Passing Arguments

ncitest.raku
-
use NativeCall;
+
use NativeCall;
 
 constant LIBPATH = "$*CWD/ncitest";
 sub hello(Str) is native(LIBPATH) is symbol('hellofromc') { * }
@@ -5542,7 +5544,7 @@ 

15.4. Returning values

ncitest.raku
-
use NativeCall;
+
use NativeCall;
 
 constant LIBPATH = "$*CWD/ncitest";
 sub add(int32,int32 --> int32) is native(LIBPATH) { * }
@@ -5698,7 +5700,10 @@ 

16. The Community

/r/rakulang subscribe to the Raku subreddit.

  • -

    @raku_news follow the community on twitter.

    +

    @raku_news follow the community on X.

    +
  • +
  • +

    @rakulang follow the community on Mastodon.

  • @@ -5713,7 +5718,7 @@

    16. The Community

    diff --git a/it/index.html b/it/index.html index 09da482..888120c 100644 --- a/it/index.html +++ b/it/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5518,7 +5520,7 @@

    16. La comunità

    diff --git a/ja/index.html b/ja/index.html index b280a85..a64b2c5 100644 --- a/ja/index.html +++ b/ja/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5612,7 +5614,7 @@

    16. コミュニティ

    diff --git a/nl/index.html b/nl/index.html index ceed34e..163f0ca 100644 --- a/nl/index.html +++ b/nl/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5597,7 +5599,7 @@

    16. De Community

    diff --git a/pt/index.html b/pt/index.html index bbb6d75..71fffaf 100644 --- a/pt/index.html +++ b/pt/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5170,7 +5172,7 @@

    15. A Comunidade

    diff --git a/ru/index.html b/ru/index.html index 9b61cf7..a90c8dd 100644 --- a/ru/index.html +++ b/ru/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5670,7 +5672,7 @@

    16. Сообщество

    diff --git a/tr/index.html b/tr/index.html index fdff213..0d06013 100644 --- a/tr/index.html +++ b/tr/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5380,7 +5382,7 @@

    16. Topluluk

    diff --git a/uk/index.html b/uk/index.html index c6833bc..ea4edd6 100644 --- a/uk/index.html +++ b/uk/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -2448,7 +2450,7 @@

    6. given

    diff --git a/zh/index.html b/zh/index.html index 61a03a3..77c639f 100644 --- a/zh/index.html +++ b/zh/index.html @@ -36,7 +36,7 @@ - + @@ -175,7 +175,7 @@ #content::before{content:none} #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0} #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf} -#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} +#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap} #header .details span:first-child{margin-left:-.125em} #header .details span.email a{color:rgba(0,0,0,.85)} @@ -197,6 +197,7 @@ #toctitle{color:#7a2518;font-size:1.2em} @media screen and (min-width:768px){#toctitle{font-size:1.375em} body.toc2{padding-left:15em;padding-right:0} +body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto} #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em} #toc.toc2>ul{font-size:.9em;margin-bottom:0} @@ -362,7 +363,7 @@ a.image object{pointer-events:none} sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super} sup.footnote a,sup.footnoteref a{text-decoration:none} -sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} +sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em} #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0} #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em} @@ -483,6 +484,7 @@ pre.pygments .tok-cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ pre.pygments .tok-gd { color: #A00000 } /* Generic.Deleted */ pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */ +pre.pygments .tok-ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ pre.pygments .tok-gr { color: #E40000 } /* Generic.Error */ pre.pygments .tok-gh { color: #000080; font-weight: bold } /* Generic.Heading */ pre.pygments .tok-gi { color: #008400 } /* Generic.Inserted */ @@ -5713,7 +5715,7 @@

    16. 社区