Heavy

final case class Heavy[W, +A](weight: W, density: W, value: A) extends Weighted[W, A]
class Weighted[W, A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def isWeightless: Boolean
Definition Classes

Inherited methods

final def ===[B >: A](that: Weighted[W, B])(using evidence$3: Eq[B], Eq[W]): Boolean
Inherited from:
Weighted
final def flatMap[B](f: A => Weighted[W, B])(using Rig[W], Eq[W]): Weighted[W, B]
Inherited from:
Weighted
final def importance(f: A => W)(using Semifield[W], Eq[W]): Weighted[W, A]
Inherited from:
Weighted
final def importanceA[F[_], B >: A](f: B => F[W])(using evidence$1: Applicative[F], Semifield[W], Eq[W]): F[Weighted[W, B]]
Inherited from:
Weighted
final def isHeavy: Boolean
Inherited from:
Weighted
final def map[B](f: A => B): Weighted[W, B]
Inherited from:
Weighted
final def product[B](b: Weighted[W, B])(using Rig[W], Eq[W]): Weighted[W, (A, B)]
Inherited from:
Weighted
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
final def show[B >: A](using evidence$2: Show[B], Show[W]): String
Inherited from:
Weighted
final override def toString: String
Definition Classes
Weighted -> Any
Inherited from:
Weighted