final
- Companion
- object
class AnyVal
trait Matchable
class Any
Value members
Concrete methods
Prepend the value to a monoid for use in right-to-left reduction
Prepend the value to a monoid for use in right-to-left reduction
Append the value to a monoid for use in left-to-right reduction
Append the value to a monoid for use in left-to-right reduction
Unfold to the left using this value as initial seed.
Unfold to the left using this value as initial seed.
Example:
0.unfoldl(i => if (i < 5) just((i+1, i.toString)) else empty[(Int, String)]).to[List]
= List(4, 3, 2, 1, 0)