Skip to content

Commit

Permalink
Make foldr example code match commented return
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaime Terreu committed Dec 25, 2024
1 parent 65cea00 commit 2265e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dict.elm
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,11 @@ foldl func acc dict =
import Dict exposing (Dict)
getAges : Dict String User -> List String
getAges : Dict String User -> List Int
getAges users =
Dict.foldr addAge [] users
addAge : String -> User -> List String -> List String
addAge : String -> User -> List Int -> List Int
addAge _ user ages =
user.age :: ages
Expand Down

0 comments on commit 2265e4d

Please sign in to comment.