trait IdentityFlatten[F[+_]] extends AssociativeFlatten[F]
IdentityFlatten
described a type that can be "flattened" in an
associative way and has an identity element with respect to that operation.
For example, with a list we can always vacuously add a layer by wrapping a
list in another list constructor and flattening the resulting list always
returns the original list unchanged.
- Self Type
- IdentityFlatten[F]
- Annotations
- @implicitNotFound()
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- IdentityFlatten
- AssociativeFlatten
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def any: F[Any]
The identity element.
- abstract def flatten[A](ffa: F[F[A]]): F[A]
Flattens a value of type
F[F[A]]
to produce anF[A]
.Flattens a value of type
F[F[A]]
to produce anF[A]
.- Definition Classes
- AssociativeFlatten