Add hash() function
Merge pull request #169 from kylelutz/hash-function

Add hash() function