Oops, sorry, you were looking for expand rather than scan

   1 0 0 1 0 1 #inv 1 2 3
1 0 0 2 0 3

-- 
Raul

On Mon, Aug 15, 2011 at 8:17 AM, Raul Miller <[email protected]> wrote:
> Scan is /\ in J.
>
> --
> Raul
>
> On Monday, August 15, 2011, Gian Medri <[email protected]> wrote:
>> Hi!
>>
>> To expand a vector APL has a primitive "\" to do expansion.
>> b=: 1 0 0 1 0 1
>> b\1 2 3
>> 1 0 0 2 0 3
>> b\'abc'
>> a  b c
>> I didn't find any primitive in J to do this. How can J solve this problem?
>>
>> Thanks in advance
>>
>> Gian Medri
>> ----------------------------------------------------------------------
>> 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