Open KongXinyue opened 3 years ago
I'm confused because I think andThen() method has achieved the composition process while mystery=twice(twice()) instead of twice(). What does andThen() really do ??
mystery calls twice 2 times same as calling f.andThen(f) 2 times same as calling f 4 times
So it should be f^4 instead of f^2?
Yup. Iirc u get 65536=2^16=x^2 4 times where x=2
I'm confused because I think andThen() method has achieved the composition process while mystery=twice(twice()) instead of twice(). What does andThen() really do ??