Current section
Files
Jump to
Current section
Files
src/glitch@extended@function_ext.erl
-module(glitch@extended@function_ext).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([compose/2]).
-spec compose(fun((OVC) -> OVD), fun((OVD) -> OVE)) -> fun((OVC) -> OVE).
compose(Fun1, Fun2) ->
fun(A) -> Fun2(Fun1(A)) end.