import { Arity2 , curry } from '@typed/lambda' ; export const map = curry ( __map ) ; function __map < A , B , C > ( fn , map ) { const newMap = new Map ( ) ; for ( const [ a , b ] of map ) { newMap . set ( a , fn ( a , b ) ) ; } return newMap ; }