```javascript var compose = function(f, g) { return function(x) { return f(g(x)) } } ``` 从右向左的数据流向都是先g(),然后f() 所以满足结合律 ```javascript var associative = compose(f, compose(g, h)) == compose(compose(f, g), h) ``` http://jsbin.com/wavusajipe/edit?html,js,console