Update README.md

add function that accepts one argument and returns the type.