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 12e7573 commit 7a06abbCopy full SHA for 7a06abb
prelude.js
@@ -6,7 +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)
+// compose :: (a -> c) -> [(a -> a)] -> (a -> c)
10
const compose = fns => fns.reduce(_compose);
11
12
// replace :: Regex -> String -> String -> String
0 commit comments