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 = () =>
showList(10)(
showCols(10)(
takeWhile(ge(120))(
takeWhile(ge(120))(
attractiveNumbers()
attractiveNumbers()
Line 934: Line 934:




// showList :: Int -> [a] -> String
// showCols :: Int -> [a] -> String
const showList = w => xs => {
const showCols = w => xs => {
const
const
ys = xs.map(str),
ys = xs.map(str),