what is the result of
5!:5<'b' [ b=. {.a


On Tue, May 26, 2020, 4:59 AM HH PackRat <[email protected]> wrote:

> I am stumped.
>
> a is a table with a label row followed by data rows.  Breaking
> everything down into small steps to see where an error might occur:
>
> {. a
> ┌───┬───┬───┬───┬─-─┬-──┬──-────┬┐
> │Date│Price│Open│High│Low│Vol.│Change %││
> └───┴───┴───┴───┴-──┴─-─┴─-─────┴┘
> 0 { ({. a)
> ┌───┐
> │Date│
> └───┘
> > 0 { ({. a)
> Date
>
> toupper (> 0 { ({. a))
> DATE
>
> 'DATE' -: toupper (> 0 { ({: a))
> 0
>
> if. 'DATE' -: toupper (> 0 { ({. a)) do. a=. }. a end.
>
> If the above is true (1), the surrounding if. statement will delete
> the label row.  But, since DATE and DATE are identical, why is it
> false (0)?
>
> Thanks in advance to anyone who can help explain this mystery!
>
> Harvey
> ----------------------------------------------------------------------
> 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