Current section

Files

Jump to
gleam_stdlib gen src gleam@function.erl
Raw

gen/src/gleam@function.erl

-module(gleam@function).
-compile(no_auto_import).
-export([compose/2, flip/1, identity/1, rescue/1]).
compose(Fun1, Fun2) ->
fun(A) -> Fun2(Fun1(A)) end.
flip(Fun) ->
fun(B, A) -> Fun(A, B) end.
identity(X) ->
X.
rescue(A) ->
gleam_stdlib:rescue(A).