Chances are, if you've been reading Elm code older than a year, that you've seen a strange squiggly symbol <~
.
It used to be exposed by the Signal namespace, but was then obsoleted in favour of just using its full name Signal.map
(which is now itself obsolete).
in merge (dir <~ Keyboard.arrows) (dir <~ Keyboard.wasd)
becomes
in Signal.merge (Signal.map dir Keyboard.arrows) (Signal.map dir Keyboard.wasd)
Comments? Give me a shout at @lambda_cat.
To get the latest post updates subscribe to the LambdaCat newsletter.
You can support my writing on LambdaCat's Patreon.