from typing import Optional
from typing import Any


def coalesce(*args) -> Optional[Any]:
    """Returns the first non-null value"""
    for i in args:
        if i:
            return i
    
    return None