sub

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

create a SubStore that represents a certain part of your data model.

Parameters

lens

: a Lens describing, which part of your data model you will create SubStore for. Use @Lenses annotation to let your compiler create the lenses for you or use the buildLens-factory-method.