sorry, I found it right after sending, but here is another stumper
also,
ts '(3 : '' ( -: a) + b + (+: c) [ ''a b c'' =. y'')"1 ] 1e5 3 $ ;/ i.37'
needs to be:
ts '(3 : '' ( -: a) + b + (+: c) [ ''''a b c'''' =. y'')"1 ] 1e5 3 $ ;/ i.37'
2.17296/sec 4.3856MB
and just fyi, the point of why I was doing that, the equivalent tacit form
timing:
ts '( -:@>@{: + >@(1&{) + +:@>@{:)"1 ] 1e5 3 $ ;/ i.37'
9.2746/sec 4.38099MB
----- Original Message -----
From: Michael Dykman <[email protected]>
To: J Programming <[email protected]>
Cc:
Sent: Monday, November 4, 2013 4:56:01 PM
Subject: Re: [Jprogramming] weird syntax error
double your quotes when inside quotes.
t =. 3 : ' ( -: a) + b + (+: c) [ ''a b c'' =. y'
On Mon, Nov 4, 2013 at 4:53 PM, Pascal Jasmin <[email protected]>wrote:
> I'm likely doing something silly, but I just don't see the mistake:
>
> (-: a)+b++:c [ 'a b c' =. ;/ 1 2 3
> 8.5
> t =. 3 : ' ( -: a) + b + (+: c) [ 'a b c' =. y'
> |syntax error
> | (-:a) +b+(+:c)[
>
> is it trying to form a train with [ as the rh most verb?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
- michael dykman
- [email protected]
May the Source be with you.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm