rtfeldman / elm-in-action

Resources for the Elm In Action book.
166 stars 33 forks source link

Inconsistency between Listing 7.7 and Listing 7.12 #47

Open kantuni opened 1 week ago

kantuni commented 1 week ago

Listing 7.7

toggleExpanded : FolderPath -> Folder -> Folder
toggleExpanded path (Folder folder) =
    ...

vs

Listing 7.12

toggleExpanded : FolderPath -> Folder -> Folder
toggleExpanded path (Folder root) =
    ...

P.S. I understand that the variable name doesn't matter - I just wanted to point out the inconsistency in case you decide to produce a new version of the book someday.

P.P.S. Thank you for an amazing book!