Fn to yield hashCode of objects. Closes #41