Support all kinds of sequences, not only lists