from typing import Optional
from typing import Any


def conj(l: Optional[list], v: Any) -> list:
    """conj(oin) a value onto a list, returning a new list with the value appended."""

    l = l or []
    if v not in l:
        return [v, *l]
    return l