instance

fun <S : Any, A : S> instance(klass: KClass<A>): Prism<S, A>(source)

Focuses on those elements of the specified klass


inline fun <S : Any, A : S> instance(): Prism<S, A>(source)

Focuses on those elements of the specified class