This works, and the ages are numeric.  Linda

-----Original Message-----
From: Programming [mailto:[email protected]] On Behalf 
Of Don Guinn
Sent: Wednesday, June 29, 2016 9:44 AM
To: Programming forum
Subject: Re: [Jprogramming] How many years did each person live?

   v=:3 : 'y,.<"0-~/"1".&>0 2{"1 y'
   v E
+----+-----------------------+----+-----+
|1809|Philip St. George Cooke|1895|86   |
+----+-----------------------+----+-----+
|1836|Flora Cooke Stuart     |1923|87   |
+----+-----------------------+----+-----+
|1833|Jeb Stuart             |1864|31   |
+----+-----------------------+----+-----+
|1834|Jacob Sharpe           |189 |_1645|
+----+-----------------------+----+-----+


On Tue, Jun 28, 2016 at 6:45 PM, Linda A Alvord <[email protected]>
wrote:

> Nowdefine a verb to add a 4th column of the life span of each person.
>
>
>
> A=:'1809';'Philip St. George Cooke';'1895'
>
>    B=:'1836';'Flora Cooke Stuart';'1923'
>
>    C=:'1833';'Jeb Stuart';'1864'
>
>    D=:'1834';'Jacob Sharpe';'189'
>
>    [E=:A,B,C,:D
>
> -----T-----------------------T----┐
> │1809│Philip St. George Cooke│1895│
> +----+-----------------------+----+
> │1836│Flora Cooke Stuart     │1923│
> +----+-----------------------+----+
> │1833│Jeb Stuart             │1864│
> +----+-----------------------+----+
> │1834│Jacob Sharpe           │189 │
> L----+-----------------------+-----
>
>
>
> Linda
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
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