def _unary_apply(op, value):
    """
    Constructs a Weld string to apply a unary function to a scalar.

    Examples
    --------
    >>> _unary_apply("sqrt", "e")
    'sqrt(e)'
    """
    return "{op}({value})".format(op=op, value=value)