S SmartDocs
시리즈: Angelia haskell 4 줄 · 업데이트 2026-02-03

exercise_2_1.hs

Angelia/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

관련 글