From: Joseph McDonald Date: 2002-03-19T10:19:31+09:00 Subject: Re: Wanted: slick rubyesqe algorithm MS> I don't consider it a slick solution, but it is the one I came up MS> with: Nice. I shortened it a bit: def stringCompress(arr) newArr = [] arr.each do |element| if element.type == String and newArr[-1].type == String newArr[-1] += element else newArr << element end end return newArr end p stringCompress(["AB","CD",:alpha,"DE",:beta,:gamma,"FG","HI"]) Hopefully I didn't break it. -joe