halotukozak.commons
package halotukozak.commons
Members list
Type members
Classlikes
object containsOnly extends containsOnlyLowPriority
Attributes
- Companion
- trait
- Supertypes
- Self type
-
containsOnly.type
Attributes
- Supertypes
- Known subtypes
-
object containsOnly
Types
type HasDuplicates[Tup <: Tuple] = Tup match { case EmptyTuple => false case h *: t => Contains[t, h] || HasDuplicates[t] }
type Indices[Tup <: Tuple] = Tup match { case EmptyTuple => EmptyTuple case h *: t => 0 *: IndicesAux[t, 1] }
type IndicesAux[Tup <: Tuple, N <: Int] = Tup match { case EmptyTuple => EmptyTuple case h *: t => N *: IndicesAux[t, S[N]] }
Extensions
Extensions
extension (companion: Expr.type)
extension (tup: Tuple)
inline def mapAs[T](using containsOnly[tup.type, T])[F[_ <: T]](inline f: [t <: T] => t => F[t]): Map[tup.type, [X] =>> F[X & T]]
In this article