On 8 September 2010 15:53, Dan Bron <[email protected]> wrote:
> Ric wrote:
>>  I'd also encourage you to provide an example of the problem
>>  you want to solve
>
> Justin Paston-Cooper responded:
>>  I'm doing a level-by-level calculation of vectors from a previous
>>  "level" which is once again a list of vectors.
>
> I think I understand, but I'll be able to give more informed (and concrete,
> i.e. code) advice  if you follow Ric's further suggestion:
>
>> including example inputs & outputs
http://pastebin.com/vJQ13h0d

I've pasted my code there.

byLevel and depthFirst are alternatives of what I'm trying to do. In
depthFirst, I'm maintaining a separate stack for each type of data
(see line 70 onwards). I'm wondering whether there's a nicer way to go
about this other than using boxing, as that turned out to be much
slower than maintaining the separate stacks.
>
> -Dan
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to