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