From da81a09eb8db40d77db5e8f942b1e33f4a3caef6 Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Fri, 15 Dec 2023 15:02:02 +0100 Subject: [PATCH] elm-format Hashdict documentation --- src/Internal/Tools/Hashdict.elm | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Internal/Tools/Hashdict.elm b/src/Internal/Tools/Hashdict.elm index 45c13d1..b8be6a9 100644 --- a/src/Internal/Tools/Hashdict.elm +++ b/src/Internal/Tools/Hashdict.elm @@ -56,18 +56,17 @@ example, this can be useful when every user is identifiable by their username: users : Hashdict User users = - Hashdict.fromList .name - [ User "Alice" 28 1.65 - , User "Bob" 19 1.82 - , User "Chuck" 33 1.75 - ] + Hashdict.fromList .name + [ User "Alice" 28 1.65 + , User "Bob" 19 1.82 + , User "Chuck" 33 1.75 + ] type alias User = - { name : String - , age : Int - , height : Float - } - + { name : String + , age : Int + , height : Float + } In the example listed above, the users are stored by their username, which means that all you need to know is the value "Alice" to retrieve all the information