import { Lens , pipeLenses } from '@typed/lenses' ; import { LensPath } from './types' ; import { apply } from '@typed/functions' ; import { lensProp } from '../lensProp' ; name export const lensPath = function ( path ) : Lens < any , any > { return apply ( Array . from ( path ) . map ( lensProp ) , pipeLenses ) ; } ;