Index

@implicitNotFound("Could not find an instance of Index[${S},${I},${A}], please check Monocle instance location policy to ".+("find out which import is necessary")) abstract class Index[S, -I, A] extends Serializable

Typeclass that defines an Optional from an S to an A at an index I Index is less powerful than At as it cannot create or delete value

Typeclass that defines an Optional from an S to an A at an index I Index is less powerful than At as it cannot create or delete value

Type Params
A

target of Optional, A is supposed to be unique for a given pair (S, I)

I

index

S

source of Optional

Companion
object
Source
Index.scala
trait Serializable
class Object
trait Matchable
class Any

Value members

Abstract methods

def index(i: I): Optional[S, A]
Implicitly added by oneAndIndex
def index(i: I): Optional[S, A]