On Mon, Aug 3, 2009 at 9:21 PM, Raul Miller<[email protected]> wrote:
> ...
>
>   powSet=:    /:~@:(<@#~) 2 (#"1~ +./)@#:@i...@^#
>

I prefer the following phrasing of your solution:

   powSet1=:    /:~@:(<@#~)  (#"1~ +./)@#:@i.@(2&^)@#

This uses more tokens, but it may be more tractable for readers of
lower fluency.

Thank you very much for providing your revision, by the way. The
technique of (#"1~ +./) to get around the anomaly at zero was
instructive.

--
Tracy
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to