How to turn maps and keyword lists into Elixir structs
Автор: German Velasco
Загружено: 2023-07-18
Просмотров: 866
Описание:
One nice way of turning a map or keyword list into an existing struct is to use
`struct/2` or `struct!/2`.
`struct/2` will drop any attributes that are not part of the struct
`struct!/2` will raise an error if there are attributes that are not part of
the struct
But not only can they create structs, they can also update them!
For more videos like this, check out https://www.elixirstreams.com/
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: