src/internal/_map.js
/**
* Created by mgobbi on 20/04/2017.
*/
import curry from "./_curry";
export default curry((fn, list) => {
// return Array.from(list).map(fn);
let idx = 0;
const length = list.length;
const result = [];
for(idx;idx<length;idx++){
result[idx]=fn(list[idx]);
}
return result;
});