We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
iter
coll
1 parent d94c195 commit 4d28131Copy full SHA for 4d28131
_overviews/collections-2.13/views.md
@@ -21,15 +21,15 @@ As an example of a non-strict transformer consider the following implementation
21
{% tabs views_1 class=tabs-scala-version %}
22
{% tab 'Scala 2' for=views_1 %}
23
```scala mdoc
24
-def lazyMap[T, U](iter: Iterable[T], f: T => U) = new Iterable[U] {
25
- def iterator = iter.iterator.map(f)
+def lazyMap[T, U](coll: Iterable[T], f: T => U) = new Iterable[U] {
+ def iterator = coll.iterator.map(f)
26
}
27
```
28
{% endtab %}
29
{% tab 'Scala 3' for=views_1 %}
30
```scala
31
-def lazyMap[T, U](iter: Iterable[T], f: T => U) = new Iterable[U]:
32
+def lazyMap[T, U](coll: Iterable[T], f: T => U) = new Iterable[U]:
33
34
35
{% endtabs %}
0 commit comments