I was missing Array.join:
Array.join
class Array def process_and_interpose(initial, middle, last) initial + (map { |i| yield i }).join(middle) + last end end
There are no revisions for this post.
Published 6/30/2007 & Filed in Programming