Skip to content

Commit

Permalink
Enable clojure.core-style extra args for state update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauli Jaakkola committed Sep 10, 2020
1 parent 4635843 commit 13b07f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fell/state.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(let [get (request-eff [label (Get.)])]
(letfn [(set [value*] (request-eff [label (Set. value*)]))

(update [f] (-flat-map get (fn [s] (set (f s)))))
(update [f & args] (-flat-map get (fn [s] (set (apply f s args)))))

(resume [^Pair suspension] (run (.-snd suspension) (.-fst suspension)))

Expand Down

0 comments on commit 13b07f9

Please sign in to comment.