Re: Is subscripting a slice useful
On 12 Oct 2004 12:45:59 +0200, Christian Cuvier
<Christian.CUVIER at agriculture.gouv.fr> wrote:
<snip>
>>>>>> and hence a nested subscript of that could not
>>>>>> possibly yield a sequence of length 4.
>>>>False, if the intermediate sequence is made of sequences itself.
>> I don't understand what you mean. Please give me an example.
>Let's call this question Q0, see below.
<snip>
>(answers Q0 btw)
>Apply [1..1] to it -> {{{8}, {14}}, {{12}, {21}}}
?length({{{8}, {14}}, {{12}, {21}}})
(It has tickled me, that one, <giggle>)
>You need the [] construct, which would mean "skip this level of sequencing".
>Then you can go to this point by using c[1..2][2..3][][][1].
Oooh, lovely syntax
)
>{{{8,10,12,22}}, {{12,15,18,33}}} would be (c[1..2][2..3])[1..2][1..1]
Eeek
)
>> c[2..3][2..3]+={2,3}
>I'd say the second one. You get the third one by c[2..3][2..3]+={{2,3}}, and
>the first one by c[2..3][2..3]+={{2},{3}}.
<snip>
>Fire at will...
I give, you win!
This is all possible, but you should at least by now understand why
*I* don't consider it an improvement to the lovely, elegant language
we all know and love.
If the majority want this, so be it, I've had my say.
Regards,
Pete
|
Not Categorized, Please Help
|
|