allow functions for .get(fn) and .fill(fn)