Store key-value pairs using Records in Elm

Share this video with your friends

Send Tweet

A record is a set of key-value pairs, similar to objects in Javascript. Record fields can be accessed through dot-notation, or special access functions. Records are fully type-checked and can be described by type aliases.

Kevin Jullien
Kevin Jullien
~ 6 years ago

toString is String.fromInt in the latest elm version

Daniel Kukula
Daniel Kukula
~ 6 years ago

in newest version of elm you can't use the dog variable 2 times - you need to rename one of them