Arie Groeneveld wrote: > Hi, > > > To generate all subsets of set s: > this is what I can come up with: > > powerset=: 13 : '(#: i.2^#y)<@:#"1 y' I hope no one assumes that I claim this is cooked up by myself ;-) If so, I apologize for that. Yes, I looked at f.e.: Re: [Jgeneral] all possible additions of every subset of n numbers
What I'm looking for is if something like: f null = [null] f (x:xs) = f xs 'concatenate' map (x:) f xs in functional programming is possible in J. @@i=Arie ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
