8000 Fix redirects · SourceCodeBot/docs.scala-lang@980dc6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 980dc6d

Browse files
authored
Fix redirects
1 parent 6b2ae55 commit 980dc6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_tour/for-comprehensions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ num: 19
77
next-page: generic-classes
88
previous-page: extractor-objects
99

10-
redirect_from: "/tutorials/tour/for-comprehensions.html"
11-
redirect_from: "/tutorials/tour/sequence-comprehensions.html"
10+
redirect_from:
11+
- "/tutorials/tour/for-comprehensions.html"
12+
- "/tutorials/tour/sequence-comprehensions.html"
1213
---
1314

1415
Scala offers a lightweight notation for expressing *sequence comprehensions*. Comprehensions have the form `for (enumerators) yield e`, where `enumerators` refers to a semicolon-separated list of enumerators. An *enumerator* is either a generator which introduces new variables, or it is a filter. A comprehension evaluates the body `e` for each binding generated by the enumerators and returns a sequence of these values.

0 commit comments

Comments
 (0)
0