The properties() method returns a set of entries, as instances of java.util.Map.Entry. You can
thus write code such as:
function dump = |obj| {
foreach prop in obj: properties() {
println(prop: getKey() + " -> " + prop: getValue())
}
}Because dynamic object entries mix both values and method handles, do not forget that the predefined
isClosure(obj) function can be useful to distinguish them.