summaryrefslogtreecommitdiff
path: root/21-28/22.hs
blob: 57771f6b5dbec88ffcaf1839f2d80904080fd073 (plain) (blame)
1
2
3
4
5
range :: Int -> Int -> [Int]

range l r
    | l <= r = l:range (l + 1) r
    | otherwise = []