CanPutP

dev.constructive.eo.CanPutP
See theCanPutP companion object
trait CanPutP[T, A, B]

Capability: a T can be constructed directly from an A, running f: A => B at the focus — the carrier-free surface of any optic whose carrier admits forgetful.ForgetfulApplicative (today: the Direct-carrier families, and Folds over an Applicative).

Prefer this trait in consuming signatures; the monomorphic CanPut alias covers A = B. See CanGet for the doctrine and the coherence rule.

Attributes

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

Members list

Value members

Abstract methods

def put(f: A => B): A => T

Attributes

Source
CanPut.scala