sub

open fun <X> sub(lens: Lens<D, X>): SubStore<D, 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 lens-factory-method.