James58899 says to YSITD
append(append(a, b),c)