import { Lens } from '../types' ; import { Maybe } from '@typed/maybe' ; import { curry2 } from '@typed/functions' ; name export const view = curry2 ( function < A , B > ( lens , obj ) : Maybe < B > { return lens . view ( obj ) ; } ) ; export type View = { < A , B > ( lens , obj ) : Maybe < B > ; < A , B > ( lens ) : ( obj : A ) => Maybe < B > ; } ;