Basic implementation of in_tail