python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why does Idris 2 fail to resolve constraints with function composition in this trivial example?
I have encountered a problem with some code I am trying to write in Idris 2. I would like to resolve this issue, but more importantly, I wish to understand it more deeply and develop some skills in di...

label17
Votes: 0
Answers: 1
How to implement function composition in JavaScript?
Below are three functions that need to be composed and give us the output 30:
const add = (a) => a + 10;
const mul = (a) => a * 10;
const divide = (a) => a / 5;
// How to implement `composi...
Sandipan Bhattacharjee
Votes: 0
Answers: 4
What would a compose method in the BiFunction interface look like?
The Function interface has the compose() and andThen() methods while the BiFunction interface only has the andThen() method. My question is simply how could the corresponding method be implemented? I'...
PianoMastR64
Votes: 0
Answers: 1
About Function composition order of execution in Haskell
I have some trouble understanding this example:
data Row = R [Int]
deriving Show
data Matrix = M [Row]
deriving Show
check :: Matrix -> Int -> Bool
check (M matrix) n = foldr ((&&am...
Johnny
Votes: 0
Answers: 2