A tacit version of Don's with a bit of simplification by using 2 0&{ instead
of 0 2 { (Also used the 1892 value for Jacob's unfortunate demise)
(] , [: <"0 [: -/ [: ". [: > 2 0&{)"1 E
┌────┬───────────────────────┬────┬──┐
│1809│Philip St. George Cooke│1895│86│
├────┼───────────────────────┼────┼──┤
│1836│Flora Cooke Stuart │1923│87│
├────┼───────────────────────┼────┼──┤
│1833│Jeb Stuart │1864│31│
├────┼───────────────────────┼────┼──┤
│1834│Jacob Sharpe │1892│58│
└────┴───────────────────────┴────┴──┘
Cheers, bob
> On Jun 29, 2016, at 6:44 AM, Don Guinn <[email protected]> wrote:
>
> 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