News for hackers. Stuff that matters.
Re:Why Elm? [pdf] by jlebrech on Tuesday May 09, 2017 @04:24AM (#14298481)
Last time i tried Elm I couldn't figure out how simply modify this clock example to move the hand quicker than every second

http://elm-lang.org/examples/clock

Re:Why Elm? [pdf] by redka on Tuesday May 09, 2017 @04:32AM (#14298504)
Well this isn't _that_ hard.

  Time.every (second / 2) Tick
and to still move it the same amount:

  Tick newTime ->  
    (newTime * 2, Cmd.none)
Re:Why Elm? [pdf] by jlebrech on Tuesday May 09, 2017 @05:46AM (#14298729)
I tried to use millisecond, but I don't it has the same interface as second.