CanTransform

dev.constructive.eo.CanTransform
See theCanTransform companion object
trait CanTransform[T, D, B]

Capability: a D at the focus of an already-built T can be transformed via D => B — the carrier-free surface of the transform extension (the generalised CanPlace).

Like CanPlace this capability has NO derived given — the extension requires T => F[X, D] evidence over the optic's existential X. Construct it explicitly: CanTransform.from(myLens). See CanGet for the doctrine and the coherence rule.

Attributes

Companion
object
Source
CanTransform.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def transform(f: D => B): T => T

Attributes

Source
CanTransform.scala