List comprehensions: Difference between revisions
→JS ES6: dropped one redundant function ( drop )
m (→JS ES6) |
(→JS ES6: dropped one redundant function ( drop )) |
||
Line 1,011:
// concatMap :: (a -> [b]) -> [a] -> [b]
const concatMap = (f, xs) => [].concat.apply([], xs.map(f));
// enumFromTo :: Int -> Int -> [Int]
|