import { Stream , map } from 'most' ; import { curry2 , prop , map as rMap } from '167' ; export const mapProp = curry2 ( function mapProp < A > ( key , stream ) : Stream < ReadonlyArray < A [ typeof key ] > > { return map ( ( list ) => list . map ( ( obj ) => obj [ key ] ) as ReadonlyArray < A [ typeof key ] > , stream ) ; } ) ; export interface MapPropArity2 { < A > ( key , stream ) : Stream < ReadonlyArray < A [ typeof key ] > > ; < A > ( key , stream ) : Stream < ReadonlyArray < A [ typeof key ] > > ; < A > ( key , stream ) : Stream < ReadonlyArray < A [ typeof key ] > > ; < A > ( key ) : MapPropArity1 < A , typeof key > ; } export interface MapPropArity1 < A , K extends keyof A > { ( stream ) : Stream < ReadonlyArray < A [ K ] > > ; ( stream ) : Stream < ReadonlyArray < A [ K ] > > ; ( stream ) : Stream < ReadonlyArray < A [ K ] > > ; }