Yes, this is what I was talking about, we can abstract away the gritty details in functions even though we have the state explicitly in our model. I hadn't seen your package but it absolutely makes sense to do it this way.
Den fredag 10 mars 2017 kl. 19:33:03 UTC+1 skrev Matthieu Pizenberg: > > > Let's consider throttling. >> ... >> > > What you are describing here Mark is almost exactly what I implemented in > mpizenberg/elm-debounce [1]. I have no experience in observables and > unfortunately, do not know yet about effect managers so it is done with > messages. I agree that it has been painful, especially at the beginning. > But after many iterations, I think I got something working well and > relatively well designed (but that is not for me to judge). > > [1] http://package.elm-lang.org/packages/mpizenberg/elm-debounce/latest > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.