[Jprogramming] Power sets

Raul Miller rauldmiller at gmail.com
Tue Aug 14 01:44:18 HKT 2007


On 8/13/07, Roger Hui <rhui000 at shaw.ca> wrote:
> ps2=: , @ ((] , ,&.>)/) @ (<@,:"_1 , a:"_)

I think I prefer
   ps3=: ((,&.>)/, ]) @ (<@,:"_1 , <@(0&#))

For example, consider what happens with an argument like i.2 2

-- 
Raul


More information about the Programming mailing list