Skip to content

Commit a1d8724

Browse files
committed
Add code tabs for overviews/custom-collection-operations
1 parent f5ad9b5 commit a1d8724

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_overviews/core/custom-collection-operations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ class IntersperseOperation[Repr, S <: IsSeq[Repr]](coll: Repr, val seq: S):
510510
given [Repr](using seq: IsSeq[Repr]): Conversion[Repr, IntersperseOperation[Repr, seq.type]] with
511511
def apply(coll: Repr) = new IntersperseOperation(coll, seq)
512512
~~~
513+
{% endtab %}
514+
{% endtabs %}
513515

514516
Note that we track the type of the receiver collection `Repr` in the `IntersperseOperation`
515517
class. Now, consider what happens when we write the following expression:

0 commit comments

Comments
 (0)