Hofstadter Q sequence: Difference between revisions
m
→JS ES6: ( indentation )
(→{{header|JavaScript}}: ES6 – memoising with the accumulator of a fold) |
m (→JS ES6: ( indentation )) |
||
Line 1,377:
// range :: Int -> Int -> [Int]
range = (m, n) =>
Array.from({
length: Math.floor(n - m) + 1
}, (_, i) => m + i),
// tail :: [a] -> [a]
|