S SmartDocs
Series: haskell haskell 4 lines · Updated 2026-02-03

exercise_2_1.hs

haskell/Week_6_Lab/exercise_2_1.hs

-- Part of Exercise 2.1
-- Define a function that increments and sums elements of nested lists.
sumIncAll :: [[Integer]] -> [Integer]
sumIncAll xss = map (sum . map (+1)) xss

Related articles