Array tail match

Match the first elements of an array an returns tail.