title says all. since it is already using a hash map. why is a fold method exposed but not much simpler query methods?