add elements-of-type function.
Merge pull request #12 from hirayama-evolni/add-elements-of-type

add elements-of-type function.