sub

fun <X> sub(lens: Lens<T, X>): SubStore<R, T, X>

creates a new SubStore using this one as it's parent.

Parameters

lens

a Lens describing which part to create the SubStore for