Attractive numbers: Difference between revisions
Content added Content deleted
m (→{{header|JavaScript}}: one renamed function) |
|||
Line 776: | Line 776: | ||
// main :: IO () |
// main :: IO () |
||
const main = () => |
const main = () => |
||
showCols(10)( |
|||
takeWhile(ge(120))( |
takeWhile(ge(120))( |
||
attractiveNumbers() |
attractiveNumbers() |
||
Line 934: | Line 934: | ||
// |
// showCols :: Int -> [a] -> String |
||
const |
const showCols = w => xs => { |
||
const |
const |
||
ys = xs.map(str), |
ys = xs.map(str), |