mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-09-29 08:08:21 +00:00
12 lines
277 B
Elm
12 lines
277 B
Elm
module Util.Address exposing (toString)
|
|
|
|
import Api.Model.Address exposing (Address)
|
|
|
|
|
|
toString : Address -> String
|
|
toString a =
|
|
[ a.street, a.zip, a.city, a.country ]
|
|
|> List.filter (String.isEmpty >> not)
|
|
|> List.intersperse ", "
|
|
|> String.concat
|