diff --git a/dev/articles/generator.html b/dev/articles/generator.html index bfb646e..bea3f4c 100644 --- a/dev/articles/generator.html +++ b/dev/articles/generator.html @@ -64,7 +64,7 @@

Generators

Lionel Henry

-

2024-08-22

+

2024-08-28

Source: vignettes/generator.Rmd
generator.Rmd
diff --git a/dev/index.html b/dev/index.html index 12b641e..7c605d6 100644 --- a/dev/index.html +++ b/dev/index.html @@ -157,11 +157,13 @@

Generators
 abc
 #> <generator/instance>
-#> function() {
-#>   for (x in letters[1:3]) {
-#>     yield(x)
-#>   }
+#> function () 
+#> {
+#>     for (x in letters[1:3]) {
+#>         yield(x)
+#>     }
 #> }
+#> <environment: 0x1258e3818>
 
 abc()
 #> [1] "a"
@@ -252,11 +254,13 @@

How does it work
 print(generate_abc, internals = TRUE)
 #> <generator>
-#> function() {
-#>   for (x in letters[1:3]) {
-#>     yield(x)
-#>   }
+#> function () 
+#> {
+#>     for (x in letters[1:3]) {
+#>         yield(x)
+#>     }
 #> }
+#> <environment: 0x1258e3818>
 #> State machine:
 #> {
 #>     if (exhausted) {
@@ -317,6 +321,11 @@ 

Installation# install.packages("devtools") devtools::install_github("r-lib/coro", build_vignettes = TRUE)

+
+

Code of Conduct +

+

Please note that the coro project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

+