8000 Update views.md · avramirez/scala.github.com@72169d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72169d7

Browse files
Harish HurchurnHarish Hurchurn
authored andcommitted
Update views.md
Changed wording back to original wording
1 parent f114305 commit 72169d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overviews/collections/views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ What happened here is that negate changed all elements of `subarr`, which was or
108108

109109
After having seen all these nifty uses of views you might wonder why have strict collections at all? One reason is that performance comparisons do not always favor lazy over strict collections. For smaller collection sizes the added overhead of forming and applying closures in views is often greater than the gain from avoiding the intermediary data structures. A probably more important reason is that evaluation in views can be very confusing if the delayed operations have side effects.
110110

111-
Here's an example which caught out a few users of versions of Scala before 2.8. In these versions the Range type was lazy, so it behaved in effect like a view. People were trying to create a number of actors like this:
111+
Here's an example which bit a few users of versions of Scala before 2.8. In these versions the Range type was lazy, so it behaved in effect like a view. People were trying to create a number of actors like this:
112112

113113

114114
val actors = for (i <- 1 to 10) yield actor { ... }

0 commit comments

Comments
 (0)
0