Add function nth to get the nth (zero-based) item in a list.