From: Nanyang Zhan Date: 2010-01-05T14:08:00+09:00 Subject: How to generate a collection? Given any four letter word, for example: "card" Replace one to three letters with "~", How can I get the result collection ( ["~ard", "c~rd", ..., "~~r~", "~~~d"])? I know ruby, but I am bad at any algorithms, help please. -- Posted via http://www.ruby-forum.com/.