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

use component/to-function