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.
Returns the keys of this union as an HList
of singleton typed values.
Maps a higher rank function across the values of this union.
Returns a Map
whose keys and values are typed as the Lub of the keys
and values of this union.
Returns a wrapped version of this union that provides selectDynamic
access to fields.
Returns a Coproduct
of the values of this union.
Discriminated union operations on
Coproducts
's with field-like elements.