You should do a structural recursion over `a-seq`, like in `last-element` for example.