Jump to content

Padovan sequence: Difference between revisions

m
→‎{{header|Haskell}}: More consistent formatting, for visibility of parallels
(→‎{{header|Haskell}}: Added context to the preamble, applied HLint.)
m (→‎{{header|Haskell}}: More consistent formatting, for visibility of parallels)
Line 916:
 
padovans :: [Integer]
padovans = unfoldr f (1, 1, 1)
where
let f (a, b, c) = Just (a, (b, c, a + b))
in unfoldr f (1a, 1b, 1c) = Just (a, (b, c, a + b))
 
padovanFloor :: [Integer]
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.