We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9026a0 commit 4351572Copy full SHA for 4351572
prelude.js
@@ -6,6 +6,7 @@ const decode = decodeURIComponent;
6
// _compose :: (b -> c) -> (a -> b) -> (a -> c)
7
const _compose = (f, g) => (...args) => f(g(...args));
8
9
+// compose :: [(d -> e) -> (c -> d) -> (b -> c) -> (a -> b)] -> (a -> e)
10
const compose = fns => fns.reduce(_compose);
11
12
// replace :: Regex -> String -> String -> String
0 commit comments