Right now, the Platform.Sub library has a map function which allows for transforming subscriptions. However, the initial and modified subscriptions will always produce the same number of messages. Are there plans to add filterMap and/or concatMap methods to Platform.Sub so that the number of messages can be modified?
A simple use case (not that you would actually do this) would be Time.every Time.second identity |> Sub.filterMap (\x -> if floor x % 2 == 0 then Just x else Nothing) to implement Time.every (2 * Time.second) -- 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.