Getting the n-th element of a lazy list.