I assume this is in reference to lists-as-maps? See my comment above.

For this in particular, I'd want to check up front to be sure that all elements are pairs. We'd be iterating over all the elements soon enough anyway to generate the Ruby hash.