[Jprogramming] Why won;t this work?
Linda Alvord
lindaalvord at verizon.net
Sat Dec 24 23:08:04 HKT 2011
This solved my understanding of the problem. Then I got a message from R.E.
Boss on changing the list to a scalar. All is well. Thanks
Linda
-----Original Message-----
From: programming-bounces at jsoftware.com
[mailto:programming-bounces at jsoftware.com] On Behalf Of David Vaughan
Sent: Friday, December 23, 2011 3:01 AM
To: Programming forum
Subject: Re: [Jprogramming] Why won;t this work?
Check the shape of 1{.r d. I could be wrong and I can't check for myself
right now, but I thought that would give you a list of one item, not a
scalar.
___________________________
David Vaughan
On 23 Dec 2011, at 07:41, "Linda Alvord" <lindaalvord at verizon.net> wrote:
>
> d=:6 _5 7 3
> r=: 13 :'(<./y),>./y'
> r
> <./ , >./
> r d
> _5 7
> (-i.10)
> 0 _1 _2 _3 _4 _5 _6 _7 _8 _9
> 1{.r d
> _5
> (-i.10)<_5
> 0 0 0 0 0 0 1 1 1 1
>
> (-i.10)<1{.r d
> |length error
> | (-i.10) <1{.r d
>
> (-i.10)<(1{.r d)
> |length error
> | (-i.10) <(1{.r d)
>
> I want something like this, but this is a simple example of what doesn't
> work.
>
> 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
More information about the Programming
mailing list