sprunner__ &.> '2+2';'3+3';'4+4'
   2+2
4
   3+3
6
   4+4
8

2011/12/19 Björn Helgason <gos...@gmail.com>

> at the heart of sp you have sprunner
>
>    sprunner__
> 3 : '0!:111 y'
>    sprunner__ '2+2'
>    2+2
> 4
>    sprunner__ '2+2',LF,'3+3',LF,'4+4'
>    2+2
> 4
>    3+3
> 6
>    4+4
> 8
>
>
> 2011/12/19 Steven Taylor <tayl...@gmail.com>
>
>> found this example which works:
>>
>> PosDiff =: 4 : ('la =. x >. y', LF, 'sm =. x <. y', LF, 'la - sm')
>> was trying to build a string externally with a linefeed though.
>>
>> On 19 December 2011 17:20, Steven Taylor <tayl...@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > On 602 under windows, in the script window you can highlight several
>> lines
>> > and then hit Ctrl+R.
>> >
>> > So how do we achieve the same thing over the COM interface?
>> >
>> > Is there a new line character defined that allows J to execue something
>> > like a multiline verb define via the COM .Do() method?
>> >
>> > thanks,
>> > -Steven
>> >
>> ----------------------------------------------------------------------
>> 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