[Jprogramming] {. y produces an array.
Raul Miller
rauldmiller at gmail.com
Thu Oct 20 23:15:04 HKT 2011
{.^:(#@$) i.-5 4 3 2
119
{., i.-5 4 3 2
119
--
Raul
On Thu, Oct 20, 2011 at 10:44 AM, Marshall Lochbaum
<mwlochbaum at gmail.com> wrote:
> A more general solution is {.^:(#@$) , which will strip all the dimensions
> off the array.
>
> Marshall
>
> On Thu, Oct 20, 2011 at 7:34 AM, Raul Miller <rauldmiller at gmail.com> wrote:
>
>> {. gets the first item from an array.
>>
>> You might be wanting lim=. {.,y (which will always have lim be a rank 0
>> array).
>>
>> But I do not have a good enough of a mental model of your data
>> structures to say for sure what you want.
>>
>> --
>> 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
>
More information about the Programming
mailing list