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((UQB) -> UQC), fun((UQC) -> UQD)) -> fun((UQB) -> UQD).
compose(Fun1, Fun2) ->
fun(A) -> Fun2(Fun1(A)) end.