def s_remove(p_map, p_key, p_default=None):
    """
    s_remove(p_map, p_key)->p_value
    """
    if p_map is not None and p_key in p_map:
        p_value = p_map[p_key]
        p_map.remove(p_key)
        return p_value
    else:
        return p_default
