Skip to content

Instantly share code, notes, and snippets.

@zwilias
Last active December 8, 2021 07:55
companySalaries =
List.foldl
(\datum ->
Dict.update
datum.company
(Maybe.withDefault []
>> (::) datum.monthSalary
>> Just
)
)
Dict.empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment