[Jprogramming] Interweave
Raul Miller
rauldmiller at gmail.com
Fri Mar 11 13:32:08 UTC 2016
There's nothing wrong with "normal order".
But you can go only so far, with words. At some point you need to
illustrate the concept.
Which brings up another problem: the 4 got chopped off the current
definition of z in that example:
]z=: 0 10 20 +/ i. NB. sample noun
Anyways, if you just scramble the hard coded numbers - maybe 0 20 10
instead of 0 10 20 - that should show that the result is not being
sorted by value. Also, bring back the 4...
Thanks,
--
Raul
On Thu, Mar 10, 2016 at 6: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
More information about the Programming
mailing list