This is not a introduction post to Clojure transducer. Instead there are a lots of great introduction post out there. This post aims to clarify the greatness of transduer. In the introduction blog, this is how they describe:
Imagine that you’re a military colonel fighting a war back in the ancient time. You have a base camp but since you are fighting outside of home base, the only way to communicate with your commander is through the homing pigeons. As the war proceed, your great commander will send you military tactics for you to act accordingly to the plan. In order to notify you, your commander has to know your address, which he clearly does, and in addition to that, he will attached signal (text, cipher etc…) to the pigeons and let it fly to you. This is how you win the war without missing any instruction from your commander!
Coincidently, this is how Mailbox in Elm works too.
When I first start to learn Elm, I failed to understand Elm Signal. Luckily there is a start-app which wrap up Signal so that I don’t have to understant it to start playing with Elm. However, I like to understand how the tool I use work so I decided to spend time on it.
From the Elm documentation,
A signal is a value that changes over time
In this post, I will walk you through the step from 0 to display “Hello, Elm” in your browser. We will also discover some tools in Elm ecosystem which make our development with Elm becomes easy and fun.
We will first discussed how destructuring and spread operator can be used in ES6 – in arrays and objects. Then we will look at a few examples and also discuss some interesting quiz.