[Jprogramming] Interweave
Linda A Alvord
lindaalvord at verizon.net
Fri Mar 11 08:54:08 UTC 2016
Maybe... The new list interweaves the two original lists.
The "strategy" also applies to lists of numbers.
Linda
-----Original Message-----
From: Programming [mailto:programming-bounces at forums.jsoftware.com] On Behalf Of Henry Rich
Sent: Thursday, March 10, 2016 6:58 PM
To: programming at jsoftware.com
Subject: Re: [Jprogramming] Interweave
You're right...
Now, how would you describe the order? Would 'index order" be enough?
The Dictionary says "normal order" and then goes on to define it. I have looked for years for the right words. It has to be short and intuitive - not a mathematical definition.
How about "in the order in which they appear in y"?
Henry Rich
On 3/10/2016 6:30 PM, Nicholas Spies wrote:
> This is perhaps a quibble, but...
>
> Looking at the NuVoc definition of , y Ravel
>
> The following statement and the example directly below it...
> --------
> Produces a list <http://code.jsoftware.com/wiki/Vocabulary/AET#List>
> containing all the atoms
> <http://code.jsoftware.com/wiki/Vocabulary/AET#Atom> in y, in order.
>
> An atom <http://code.jsoftware.com/wiki/Vocabulary/AET#Atom> is
> converted to a 1-atom list
> <http://code.jsoftware.com/wiki/Vocabulary/AET#List>, a list
> <http://code.jsoftware.com/wiki/Vocabulary/AET#List> is left
> unchanged, and any noun
> <http://code.jsoftware.com/wiki/Vocabulary/AET#Noun>
> of higher rank <http://code.jsoftware.com/wiki/Vocabulary/AET#Rank> is
> flattened into a list
> <http://code.jsoftware.com/wiki/Vocabulary/AET#List>
>
> ]z=: 0 10 20 +/ i. NB. sample noun
> 0 1 2 3 4
> 10 11 12 13 14
> 20 21 22 23 24
>
> ,z
> 0 1 2 3 4 10 11 12 13 14 20 21 22 23 24
> -------------------
>
> ...and also...
>
> ,'ace',.'bdf'
>
> abcdef
>
>
> ...give the first impression that Ravel puts the items into lexical
> order,
>
> which is misleading, as shown by the example 2 under Common Uses:
>
>
> ]a =: 4 4 ?@$ 100
>
> 89 91 1 24
>
> 88 43 43 32
>
> 85 84 27 31
>
> 10 11 49 90
>
> +/ 50 < , a
>
> 6
>
> ,a
>
> 89 91 1 24 88 43 43 32 85 84 27 31 10 11 49 90
>
>
> Since NuVoc is targeting new users, the 'in order' statement should.
> IMHO, specify explicitly the order as being <whatever description is appropriate>.
>
>
> Nick
>
>
>
>
>
>
>
> On Thu, Mar 10, 2016 at 5:48 PM, Roger Hui <rogerhui.canada at gmail.com>
> wrote:
>
>> ,'ace',.'bdf'
>> abcdef
>> 'ace',@,.'bdf'
>> abcdef
>>
>>
>> On Thu, Mar 10, 2016 at 2:47 PM, Roger Hui
>> <rogerhui.canada at gmail.com>
>> wrote:
>>
>>> ,|:'ace',:'bdf'
>>> abcdef
>>> 'ace'([: , |:@,:)'bdf'
>>> abcdef
>>>
>>>
>>> On Thu, Mar 10, 2016 at 2:42 PM, Kip Murray <thekipmurray at gmail.com>
>>> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list