largestCommonPrefix(x::xs, x::ys) = x::largestCommonPrefix(xs, ys) largestCommonPrefix(x,y) = []