In the previous mail I accidentally read [<=] as [>=]

On 5/10/06, Markus Laire <[EMAIL PROTECTED]> wrote:
> >     filter (list [<=] @array) @array ==>
> >             first monotonically non-decreasing run in @array
>
> So @array = (1 0 -1 -2 -1 -3) ==> (1, -1) is monotonically non-decreasing?

This would give (1, 0, -1, -2)

Correction: This would give (1)


    list [<=] (1, 0, -1, -2, -1, -3)
==>
    1,
    1 <= 0,
    1 <= 0 <= -1,
    1 <= 0 <= -1 <= -2,
    1 <= 0 <= -1 <= -2 <= -1,
    1 <= 0 <= -1 <= -2 <= -1 <= -3
==>
    Bool::True, Bool::True, Bool::True, Bool::True, Bool::False, Bool::False

Correction:
   Bool::True, Bool::False, Bool::False, Bool::False, Bool::False, Bool::False


And so
    filter (list [<=] @array) @array
would give first 4 elements of @array, i.e. (1, 0, -1, -2)

Correction: It would give only first element of @array, i.e. (1)

--
Markus Laire

Reply via email to