Is there an idiomatic way to take a Set and a Function, and get a Map live view? (i.e. the Map
Set
Function
Map
Guava 14 now has Maps.asMap for a view of the Set and Maps.toMap for an immutable copy.
You can see much of the discussion of the issues involved here: https://github.com/google/guava/issues/56