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

2 lines
83 B
Haskell

range :: Int -> Int -> [Int]
range m n = if m > n then [] else m : range (m + 1) n