Raul wrote:

"

One was email induced line wrapping. I did not realized I had

 overlooked that until I tried some of your expressions and received a

 domain error.

"



I did not even think of issuing the customary warning.  I find this Gmail
“feature" very annoying and I have not found a way to turn it off.  Is
there any way?



"

The other was your use of =. instead of =: which I realized when I

 continued to experience that domain error when I was splitting

 execution of some expressions in a script and others interactively.

"



I have the habit of using (=.) instead of (=:).  Since I write tacitly I
should be indifferent; but, (=.) is easier to write.  I am aware that
sometimes within a local environment (e.g., within Labs) there might be
problems; but I use interactively scripts (0!:…) and Ctrl-E (from within a
script window) often without any issues.  I am still using the Windows IDE
though.  Can you elaborate on the kind of problems that you encountered?




On Sun, May 4, 2014 at 2:09 PM, Raul Miller <[email protected]> wrote:

> On Sun, May 4, 2014 at 12:21 PM, Jose Mario Quintana
> <[email protected]> wrote:
> >  >>   'X Y'=. 'X' ; 'Y'
>
> I see it now, thank you.
>
> I should note also that I ran into two other problems hindering my
> initial understanding of your post.
>
> One was email induced line wrapping. I did not realized I had
> overlooked that until I tried some of your expressions and received a
> domain error.
>
> The other was your use of =. instead of =: which I realized when I
> continued to experience that domain error when I was splitting
> execution of some expressions in a script and others interactively.
>
> I think the moral of the story here is that I rely on my ability to
> test code to build my understandings of it.
>
> That said, I also like to find fixes for problems I encounter, even if
> I suspect no one else will ever encounter those problems nor have need
> of my "fixes". So:
>
>
> 'X Y'=: 'X' ; 'Y'
>
> longdef=:3 :'0 !:0]0 : y -.LF'
>
> longdef 0
>    u=: (
>       '('"_ , 'u '"_ , ] , ')'"_
>    ) :(
>       '('"_ , [ , ' u '"_ , ] , ')'"_
>    ) :.(
>       (
>          '('"_ , 'u^:_1 '"_ , ] , ')'"_
>       ) :(
>          '('"_ , [ , ' u^:_1 '"_ , ] , ')'"_
>       )) NB.
> )
>
> longdef 0
>    v=: (
>       '('"_ , 'v '"_ , ] , ')'"_
>    ) :(
>       '('"_ , [ , ' v '"_ , ] , ')'"_
>    ) :.(
>       (
>          '('"_ , 'v^:_1 '"_ , ] , ')'"_
>       ) :(
>          '('"_ , [ , ' v^:_1 '"_ , ] , ')'"_
>       )) NB.
> )
>
>
>    (i:999) ( X&u -: X&u@]^:[  ) Y
>
> Thanks,
>
> --
> 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

Reply via email to