     (-apply-update [_ state]
       (f state))))
 
-(defn reset-state
+(defn reset
   "A event that resets the internal state with
   the provided value."
   [state]

    UpdateEvent
    (-apply-update [_ _]
      state)))

(defn init
  "Initializes the stream event loop and

  ([event & events]
   (run! #(rx/push! bus %) (into [event] events))))

(defn swap
  "A helper for just apply some function to state
  without a need to declare additional event."
  [f]
