aboutsummaryrefslogtreecommitdiff
path: root/gen/src/gleam@function.erl
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2020-01-05 18:28:04 +0000
committerLouis Pilfold <louis@lpil.uk>2020-01-05 18:33:28 +0000
commit330ea699f3c20519c174c2299215737cef5f4cbf (patch)
treea4afa9628640ac993a8cbb5eb643b04e13422969 /gen/src/gleam@function.erl
parentdebc834f87f3b5df7057dc924f577dd57d0fee8c (diff)
downloadgleam_stdlib-330ea699f3c20519c174c2299215737cef5f4cbf.tar.gz
gleam_stdlib-330ea699f3c20519c174c2299215737cef5f4cbf.zip
function.identity
Diffstat (limited to 'gen/src/gleam@function.erl')
-rw-r--r--gen/src/gleam@function.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/gen/src/gleam@function.erl b/gen/src/gleam@function.erl
index f014d37..b376ed0 100644
--- a/gen/src/gleam@function.erl
+++ b/gen/src/gleam@function.erl
@@ -1,10 +1,13 @@
-module(gleam@function).
-compile(no_auto_import).
--export([compose/2, flip/1]).
+-export([compose/2, flip/1, identity/1]).
compose(Fun1, Fun2) ->
fun(A) -> Fun2(Fun1(A)) end.
flip(Fun) ->
fun(B, A) -> Fun(A, B) end.
+
+identity(X) ->
+ X.