def apply_extras(value, extras):
    """Apply any additional functionalities after evaluation."""
    for extra in extras:
        if extra == 'len':
            value = len(value) if hasattr(value, 'len') or hasattr(value,
                '__len__') else 0
    return value
