introduce "compact" as a new utility function into the table module (pretty much in-place filter)