Compact and Extract

Compact takes individual variables, and packs them into an associative array. Extract does the opposite.