The view is a function that takes a model and produces HTML. For me, this was the eureka moment of learning Elm.
Elm: The Gateway Drug To Functional Programming

NOW it makes sense! Thank for clearing this out. It was my missing piece puzzle.

Btw, I took the liberty to create a gist of your provided code.

You can find it at:

Like what you read? Give Jose Gonzalez a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.