Commit c2009f5 Jaime Terreu
committed
1 parent 65cea00 commit c2009f5 Copy full SHA for c2009f5
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -510,11 +510,11 @@ map func dict =
510
510
511
511
import Dict exposing (Dict)
512
512
513
- getAges : Dict String User -> List String
513
+ getAges : Dict String User -> List Int
514
514
getAges users =
515
515
Dict.foldl addAge [] users
516
516
517
- addAge : String -> User -> List String -> List String
517
+ addAge : String -> User -> List Int -> List Int
518
518
addAge _ user ages =
519
519
user.age :: ages
520
520
@@ -534,11 +534,11 @@ foldl func acc dict =
534
534
535
535
import Dict exposing (Dict)
536
536
537
- getAges : Dict String User -> List String
537
+ getAges : Dict String User -> List Int
538
538
getAges users =
539
539
Dict.foldr addAge [] users
540
540
541
- addAge : String -> User -> List String -> List String
541
+ addAge : String -> User -> List Int -> List Int
542
542
addAge _ user ages =
543
543
user.age :: ages
544
544
You can’t perform that action at this time.
0 commit comments