This would break with list as `a-seq` as lists don't support `get`. You should do a structural recursion over the `a-seq`, like in `last-element` for example.