結果 : how to solve composition of functions