99-haskell-problems/Problems 21-28/problem_22.hs

3 lines
83 B
Haskell
Raw Normal View History

2024-05-25 19:28:16 -05:00
range :: Int -> Int -> [Int]
range m n = if m > n then [] else m : range (m + 1) n