import { Lens , lens } from '@typed/lenses' ; import { prop } from '../prop' ; import { set } from '../set' ; name export const lensProp = < A , K extends keyof A = keyof A > ( key ) : Lens < A , A [ K ] > => lens ( prop ( key ) , ( x , o ) => set ( key , x , o ) ) ;