]B=:(<"0)1 2 3
┌─┬─┬─┐
│1│2│3│
└─┴─┴─┘
<&>B
1 2 3
<&>B
┌─┬─┬─┐
│1│2│3│
└─┴─┴─┘
<>B
┌─────┐
│1 2 3│
└─────┘
<"0>B
┌─┬─┬─┐
│1│2│3│
└─┴─┴─┘
]A=:'one';'two';'three'
┌───┬───┬─────┐
│one│two│three│
└───┴───┴─────┘
<>A
┌─────┐
│one │
│two │
│three│
└─────┘
<"0>A
┌─┬─┬─┬─┬─┐
│o│n│e│ │ │
├─┼─┼─┼─┼─┤
│t│w│o│ │ │
├─┼─┼─┼─┼─┤
│t│h│r│e│e│
└─┴─┴─┴─┴─┘
<"1>A
┌─────┬─────┬─────┐
│one │two │three│
└─────┴─────┴─────┘
-----Original Message-----
From: [email protected] [mailto:programming-
[email protected]] On Behalf Of Linda Alvord
Sent: Saturday, January 12, 2013 3:05 AM
To: [email protected]
Subject: Re: [Jprogramming] joining to an empty list
Raul, your example makes the issue clearer.
NB. NB. Compose: u&v y ↔ u v y
A=:'one';'two';'three'
A
┌───┬───┬─────┐
│one│two│three│
└───┴───┴─────┘
<&>A
<&>A
┌───┬───┬─────┐
│one│two│three│
└───┴───┴─────┘
<>A
┌─────┐
│one │
│two │
│three│
└─────┘
-----Original Message-----
From: [email protected] [mailto:programming-
[email protected]] On Behalf Of Linda Alvord
Sent: Friday, January 11, 2013 10:07 PM
To: [email protected]
Subject: Re: [Jprogramming] joining to an empty list
I don't understand why f and g do not agree?
#&>'one';'two';'three'
3 3 5
f=: 13 :'#&>y'
f 'one';'two';'three'
3 3 5
NB. Compose: u&v y ↔ u v y
g=: 13 :'#>y'
g=: 13 :'#>y'
g 'one';'two';'three'
3
Linda
-----Original Message-----
From: [email protected] [mailto:programming-
[email protected]] On Behalf Of Raul Miller
Sent: Friday, January 11, 2013 7:46 PM
To: [email protected]
Subject: Re: [Jprogramming] joining to an empty list
On Fri, Jan 11, 2013 at 7:38 PM, greg heil <[email protected]> wrote:
> Dan Bron" <[email protected]> Said: Friday, January 11, 2013 2:26:11 PM In:
> Re: [Jprogramming] joining to an empty list
>
>> ...It's not possible to have "ragged" arrays in J...
>
> That inability is a huge hole in the language. Most other languages
> (such as k) deal with this more or less adequately.
#&> 'one';'two';'three'
3 3 5
Not seeing the hole. Am I missing something?
--
Raul
----------------------------------------------------------------------
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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm