nthElementIs xs n = xs!!(n-1)