import {map} from 'rambda'
describe('R.map with arrays', () => { it('iterable returns the same type as the input', () => { const result = map<number>( (x: number) => { x return x + 2 }, [1, 2, 3] ) result }) it('iterable returns the same type as the input - curried', () => { const result = map<number>((x: number) => { x return x + 2 })([1, 2, 3]) result })})
describe('R.map with objects', () => { it('iterable with all three arguments - curried', () => { const result = map<number, string, any>((a, b, c) => { a b c return `${a}` })({a: 1, b: 2}) result }) it('iterable with all three arguments', () => { const result = map<number, string>( (a, b, c) => { a b c return `${a}` }, {a: 1, b: 2} ) result }) it('iterable with property argument', () => { const result = map<number, string>( (a, b) => { a b return `${a}` }, {a: 1, b: 2} ) result }) it('iterable with no property argument', () => { const result = map<number, string>( a => { a return `${a}` }, {a: 1, b: 2} ) result })})