From 2265e4d4552279240b2d11488df016b9947f3a4e Mon Sep 17 00:00:00 2001 From: Jaime Terreu Date: Wed, 25 Dec 2024 19:18:57 +1030 Subject: [PATCH] Make foldr example code match commented return --- src/Dict.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dict.elm b/src/Dict.elm index 3f80842c..06714b98 100644 --- a/src/Dict.elm +++ b/src/Dict.elm @@ -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