final class TofuFoldableOps[F[_], A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TofuFoldableOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TofuFoldableOps(fa: F[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
foldWhileM[G[_], S](initial: S)(f: (S, A) ⇒ G[Option[S]])(implicit F: Foldable[F], G: Monad[G]): G[S]
Applies monadic transfomation, feeding source collection, until operation results in None or collection is consumed
Applies monadic transfomation, feeding source collection, until operation results in None or collection is consumed
- initial
initial state
- f
state transformation, None would not be continued
- returns
final achieved state or initial
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
takeWhileM[G[_], B](f: (A) ⇒ G[Option[B]])(implicit F: Foldable[F], G: Monad[G]): G[List[B]]
transforms each element to another type using monadic transformation until it resutls in None
transforms each element to another type using monadic transformation until it resutls in None
- f
element transformation, None would not be continued
- returns
a collection of transformed elements
-
def
toString(): String
- Definition Classes
- Any