Skip to content

Commit

Permalink
Link out to wiki page for the concept of a "generator"
Browse files Browse the repository at this point in the history
The term "generator" is used in the documentation, but is never defined.
  • Loading branch information
hongtron authored Feb 29, 2024
1 parent 2ab2130 commit 01affa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _overviews/scala3-book/control-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ for i <- ints do println(i)
{% endtabs %}


The code `i <- ints` is referred to as a _generator_.
The code `i <- ints` is referred to as a [_generator_](https://en.wikipedia.org/wiki/Generator_(computer_programming)).

This is what the result looks like in the Scala REPL:

Expand Down

0 comments on commit 01affa2

Please sign in to comment.