def any_field(d, *fields):
    return next(map(lambda x: getattr(d, x), filter(lambda y: hasattr(d, y), fields)))
