<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def hide_selected():    
    '''Hide the selected objects.'''
    ss = current_representation().selection_state
    hs = current_representation().hidden_state
    res = {}
    
    for k in ss:
        res[k] = hs[k].add(ss[k])
    
    current_representation().hide(res)