(,. -: |:@,:) bc     NB. ,. is simpler
1

R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:programming-
> [EMAIL PROTECTED] Namens Tracy Harms
> Verzonden: zondag 23 december 2007 8:29
> Aan: [email protected]
> Onderwerp: [Jprogramming] laminating contents of a box-list
> 
> Having gotten most of the way through coding an
> alternate (geometric) construction of the subsequences
> array discussed earlier, I'm having enough difficulty
> figuring out how to make the final knitting-together
> to ask for some advice.
> 
> Given bc, shown below, I am seeking a verb that will
> produce desiredOutput (at the end of the following
> console example.)
> 
>    ]bc   NB. boxed components
> +-------+-------+-------+-------+-------+
> |0 0 0 0|0 0 0 1|0 0 1 0|0 1 0 0|1 0 0 0|
> |       |       |0 0 1 1|0 1 1 0|1 1 0 0|
> |       |       |       |0 1 1 1|1 1 1 0|
> |       |       |       |       |1 1 1 1|
> +-------+-------+-------+-------+-------+
>    $ &.> bc
> +---+---+---+---+---+
> |1 4|1 4|2 4|3 4|4 4|
> +---+---+---+---+---+
>    |:,: bc
> +-------+
> |0 0 0 0|
> +-------+
> |0 0 0 1|
> +-------+
> |0 0 1 0|
> |0 0 1 1|
> +-------+
> |0 1 0 0|
> |0 1 1 0|
> |0 1 1 1|
> +-------+
> |1 0 0 0|
> |1 1 0 0|
> |1 1 1 0|
> |1 1 1 1|
> +-------+
>    desiredOutput
> 0 0 0 0
> 0 0 0 1
> 0 0 1 0
> 0 0 1 1
> 0 1 0 0
> 0 1 1 0
> 0 1 1 1
> 1 0 0 0
> 1 1 0 0
> 1 1 1 0
> 1 1 1 1
> 
> 
> Thank you,
> 
> Tracy Harms
> 
> 
> 
> __________________________________________________________________________
> __________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
> ----------------------------------------------------------------------
> 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