def eval_f_0123(f):
    """Evaluates the function f=f(x) at positions x=0, x=1, x=2 and x=3. The function should return
     the list [f(0), f(1), f(2), f(3)]."""

    return [f(x) for x in range(0, 4)]