aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Utils/Tuple.elm
diff options
context:
space:
mode:
authorJoris2016-03-29 23:46:47 +0200
committerJoris2016-03-29 23:46:47 +0200
commit76f8b85eb9f796d6df861a04f702ef5f48630795 (patch)
treec8b975df9854994cbbefff15908ad9bb728264bc /src/client/elm/Utils/Tuple.elm
parentcc58377a48d13ef85cedb5ec0e19eb8b879dd497 (diff)
downloadbudget-76f8b85eb9f796d6df861a04f702ef5f48630795.tar.gz
budget-76f8b85eb9f796d6df861a04f702ef5f48630795.tar.bz2
budget-76f8b85eb9f796d6df861a04f702ef5f48630795.zip
Move logged data to LoggedIn component
Diffstat (limited to 'src/client/elm/Utils/Tuple.elm')
-rw-r--r--src/client/elm/Utils/Tuple.elm14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/elm/Utils/Tuple.elm b/src/client/elm/Utils/Tuple.elm
new file mode 100644
index 0000000..d9246f6
--- /dev/null
+++ b/src/client/elm/Utils/Tuple.elm
@@ -0,0 +1,14 @@
+module Utils.Tuple
+ ( mapFst
+ , mapSnd
+ , mapBoth
+ ) where
+
+mapFst : (a -> x) -> (a, b) -> (x, b)
+mapFst f (a, b) = (f a, b)
+
+mapSnd : (b -> x) -> (a, b) -> (a, x)
+mapSnd f (a, b) = (a, f b)
+
+mapBoth : (a -> x) -> (b -> y) -> (a, b) -> (x, y)
+mapBoth f g (a, b) = (f a, g b)