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
2121{% tabs views_1 class=tabs-scala-version %}
2222{% tab 'Scala 2' for=views_1 %}
2323``` 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)
2626}
2727```
2828{% endtab %}
2929{% tab 'Scala 3' for=views_1 %}
3030``` 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)
3333```
3434{% endtab %}
3535{% endtabs %}
You can’t perform that action at this time.
0 commit comments