Foldable

leopards.Foldable
See theFoldable companion object
trait Foldable[F[_]]

Attributes

Companion
object
Source
Foldable.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Traverse[F]
object stdListInstances.type
object stdOptionInstances.type

Members list

Extensions

Extensions

extension [A](fa: F[A])
def foldLeft[B](b: B)(f: (B, A) => B): B

Attributes

Source
Foldable.scala
def foldMap[B](f: A => B)(using B: Monoid[B]): B

Attributes

Source
Foldable.scala
def foldRight[B](b: B)(f: (A, B) => B): B

Attributes

Source
Foldable.scala