Weighted

object Weighted extends WeightedInstances with WeightedFunctions
Companion:
class
trait Sum
trait Mirror
trait WeightedFunctions
class WeightedInstances
class WeightedInstances0
class WeightedInstances1
class WeightedInstances2
class WeightedInstances3
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Heavy[W, +A](weight: W, density: W, value: A) extends Weighted[W, A]
final case class Weightless[W](weight: W) extends Weighted[W, Nothing]
Companion:
object
object Weightless
Companion:
class

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Inherited methods

def apply[W, A](density: W, value: A)(using W: MultiplicativeMonoid[W]): Weighted[W, A]
Inherited from:
WeightedFunctions
def apply[W, A](weight: W, density: W, value: A)(using evidence$8: Eq[W], W: Rig[W]): Weighted[W, A]
Inherited from:
WeightedFunctions
def pure[W, A](a: A)(using W: MultiplicativeMonoid[W]): Weighted[W, A]
Inherited from:
WeightedFunctions
def weightless[W, A](using W: Semiring[W]): Weighted[W, A]
Inherited from:
WeightedFunctions

Givens

Inherited givens

given Align_Weighted: Serializable
Inherited from:
WeightedInstances
Inherited from:
WeightedInstances
Inherited from:
WeightedInstances0
given CommutativeSemigroup_Weighted: Semigroup[A]
Inherited from:
WeightedInstances2
given Eq_Weighted[W, A]: Eq[Weighted[W, A]]
Inherited from:
WeightedInstances0
given Functor_Weighted: Invariant[F]
Inherited from:
WeightedInstances3
given InvariantMonoidal_Weighted: InvariantSemigroupal[F]
Inherited from:
WeightedInstances2
given Monad_Weighted: FlatMap[F]
Inherited from:
WeightedInstances0
given Monoid_Weighted: Semigroup[A]
Inherited from:
WeightedInstances1
given Semigroup_Weighted: Serializable
Inherited from:
WeightedInstances3
given Show_Weighted[W, A]: Show[Weighted[W, A]]
Inherited from:
WeightedInstances0