Returns the value associated with the singleton typed key k.
Returns the value associated with the singleton typed key k. Only available if this union has a field with with keyType equal to the singleton type k.T.
Note that this can creates a bogus ambiguity with CoproductOps#apply
as described in
https://issues.scala-lang.org/browse/SI-5142. If this method is accessible the conflict can be worked around by
using CoproductOps#at instead of CoproductOps#apply
.
Returns the value associated with the singleton typed key k.
Returns the value associated with the singleton typed key k. Only available if this union has a field with with keyType equal to the singleton type k.T.
Discriminated union operations on
Coproducts
's with field-like elements.