SLC: `Conversion[A, Option[A]]`

This would also either overwrite or cause ambiguity with other givens.
Here’s this scastie:

given [A]: Conversion[A, Some[A]] = Some(_)


def foo[T](xs: into[IterableOnce[T]]) = xs

foo(4) // Some(4)

foo(Array(4)) // Some(Array(4)) ! Not ArraySeq(4)!
1 Like