J does it this way:

g=: 13 :',x,.y'
   g
[: , ,.

Linda

-----Original Message-----
From: Programming [mailto:[email protected]] On Behalf 
Of Roger Hui
Sent: Thursday, March 10, 2016 5:49 PM
To: Programming forum
Subject: Re: [Jprogramming] Interweave

   ,'ace',.'bdf'
abcdef
   'ace',@,.'bdf'
abcdef


On Thu, Mar 10, 2016 at 2:47 PM, Roger Hui <[email protected]>
wrote:

>    ,|:'ace',:'bdf'
> abcdef
>    'ace'([: , |:@,:)'bdf'
> abcdef
>
>
> On Thu, Mar 10, 2016 at 2:42 PM, Kip Murray <[email protected]>
> wrote:
>
>> A quickie -- how do you interweave two equal-length lists, so that
>>
>>    'ace' itw 'bdf'
>> abcdef
>>
>> --Kip Murray
>>
>>
>>
>> --
>> Sent from Gmail Mobile
>> ---------------------------------------------------------------------
>> - For information about J forums see 
>> http://www.jsoftware.com/forums.htm
>
>
>
----------------------------------------------------------------------
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