yes-no-maybe-kink-tool/src/FunkyFunktions.elm

9 lines
252 B
Elm

module FunkyFunktions exposing (..)
constant a b = a
flip f a b = f b a
withCmd cmd model = (model, cmd)
withoutCmd model = (model, Cmd.none)
andCmd cmd2 (model, cmd1) = (model, Cmd.batch [cmd1, cmd2])
curry2 f (a, b) = f a b
uncurry2 f a b = f (a, b)