use component/to-function
Merge pull request #1 from yields/master

use component/to-function