Recursion is your friend ;o) Mark
On Feb 14, 2008 9:57 AM, Greg Morphis <[EMAIL PROTECTED]> wrote: > Given a string, e.g. "ABCD" > > I need to come up with all combinations of letters > eg > ABCD > ABDC > ACBD > ACDB > .... > > And exlude strings like 'AAAA', 'AAAB' unless you pass a string with > duplicate characters > If I pass the string "AAAB" then it'd return: > AAAB > AABA > ABAA > BAAA > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298929 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

