Logo

Programming-Idioms

History of Idiom 256 > diff from v35 to v36

Edit summary for version 36 by kingsley_Huang:
New Haskell implementation by user [kingsley_Huang]

Version 35

2023-02-16, 08:28:28

Version 36

2023-03-24, 03:50:47

Idiom #256 Count backwards

Print the numbers 5, 4, ..., 0 (included), one line per number.

Idiom #256 Count backwards

Print the numbers 5, 4, ..., 0 (included), one line per number.

Extra Keywords
countdown negative step reverse
Extra Keywords
countdown negative step reverse
Code
foldl  (\res x-> x:res) [] [0..5]