[Jprogramming] Interweave
Henry Rich
henryhrich at gmail.com
Fri Mar 11 02:45:05 UTC 2016
Yes, "the order in which they appear" is circular. Like I said, I'm
still looking for the right words...
I can't beat Ken's phrasing for accurate brevity, but it's longer than
you want for the first-line description for a newcomer; and it requires
that you know what 'item' means.
"Row-major order" would be perfect if everyone knew the term, but I
think it's passe. Marshall's "reading order", supplemented by a note
giving Ken's description, and an example, is the best I've heard yet.
Other ideas"?
Henry Rich
On 3/10/2016 7:35 PM, Roger Hui wrote:
>> "in the order in which they appear in y"?
> Isn't that kind of circular? What is the order in which they appear?
> Row-major order, index order, "normal order", etc.
>
> The way Ken has it seems pretty good: "ordered by items, by items within
> items, etc."
>
>
>
>
> On Thu, Mar 10, 2016 at 3:58 PM, Henry Rich <henryhrich at gmail.com> wrote:
>
>> 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
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list