Extended util.aProp to accept a function

Does this seem reasonable? Or is there a different way of achieving this already somewhere in util?