[Jprogramming] laminating contents of a box-list
Rob Hodgkinson
rhodgkin at bigpond.net.au
Sun Dec 23 15:41:21 HKT 2007
>(,&.>)/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
Rob Hodgkinson
On 23/12/07 6:29 PM, "Tracy Harms" <t_b_harms at yahoo.com> wrote:
> 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
More information about the Programming
mailing list