File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
_overviews/collections-2.13 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ As an example of a non-strict transformer consider the following implementation
21
21
{% tabs views_1 class=tabs-scala-version %}
22
22
{% tab 'Scala 2' for=views_1 %}
23
23
``` scala mdoc
24
- def lazyMap [T , U ](iter : Iterable [T ], f : T => U ) = new Iterable [U ] {
25
- def iterator = iter .iterator.map(f)
24
+ def lazyMap [T , U ](coll : Iterable [T ], f : T => U ) = new Iterable [U ] {
25
+ def iterator = coll .iterator.map(f)
26
26
}
27
27
```
28
28
{% endtab %}
29
29
{% tab 'Scala 3' for=views_1 %}
30
30
``` scala
31
- def lazyMap [T , U ](iter : Iterable [T ], f : T => U ) = new Iterable [U ]:
32
- def iterator = iter .iterator.map(f)
31
+ def lazyMap [T , U ](coll : Iterable [T ], f : T => U ) = new Iterable [U ]:
32
+ def iterator = coll .iterator.map(f)
33
33
```
34
34
{% endtab %}
35
35
{% endtabs %}
You can’t perform that action at this time.
0 commit comments