Am 19.12.2013 02:57, schrieb Ammar Ali:
> Here?s one way:
> 
>>> a1 = %w{a b c}
> => ["a", "b", "c"]
>>> a2 = %w{1 2 3}
> => ["1", "2", "3"]
>>> a1.map {|c1| a2.map {|c2| c1 + c2} }.flatten
> => ["a1", "a2", "a3", "b1", "b2", "b3", "c1", "c2", "c3?]

@Ammar: ">>" is rendered as quote by many email clients,
so using it as prompt is not so good in a mailing list.

Regards,
Marcus


-- 
GitHub: https://github.com/stomar/
PGP:    0x6B3A101Amm