Weighted

sealed abstract class Weighted[W, A] extends Product with Serializable
Companion:
object
trait Product
trait Equals
class Object
trait Matchable
class Any
class Heavy[W, A]
class Weightless[W, A]

Value members

Abstract methods

def density: W
def weight: W

Concrete methods

final def ===[B >: A](that: Weighted[W, B])(using evidence$3: Eq[B], Eq[W]): Boolean
final def imap[B](f: A => B)(g: B => A): Weighted[W, B]
final def importance(f: A => W)(using Semifield[W], Eq[W]): Weighted[W, A]
final def importanceA[F[_]](f: A => F[W])(using evidence$1: Applicative[F], Semifield[W], Eq[W]): F[Weighted[W, A]]
final def isHeavy: Boolean
final def product[B](b: Weighted[W, B])(using Semiring[W], Eq[W]): Weighted[W, (A, B)]
final def show[B >: A](using evidence$2: Show[B], Show[W]): String
final override def toString: String
Definition Classes
Any

Inherited methods

def canEqual(that: Any): Boolean
Inherited from:
Equals
Inherited from:
Product
def productElement(n: Int): Any
Inherited from:
Product
Inherited from:
Product
Inherited from:
Product
Inherited from:
Product