Correction forgot insert: '# > intersection &.>/ words' and though my
fix is correct I now see the reasoning was faulty (thanks to Pascal)

On 12/17/20, Joseph Novakovich <[email protected]> wrote:
> Hello,
>
> I believe the culprit is spaces getting padded in unboxing. It should
> work if you do something like
>
> # > intersection &.> words
>
> Joseph
>
> On 12/17/20, Brian Schott <[email protected]> wrote:
>> I am trying to use the verb `intersection` shown below as found
>> https://code.jsoftware.com/wiki/Vocabulary/minusdot .
>> But I get the following peculiar result on AOC#6 when applying it with
>> intersection for the following data. Am I applying these primitives
>> incorrectly?
>>
>>    intersection
>> [ -. -.
>>    #intersection&>/(<'rcyshqp'),(<'jbdnpe'),(<'zgp'),<'pnjtz'    NB.
>> should
>> be 1
>> 2
>>    #intersection&>/|.(<'rcyshqp'),(<'jbdnpe'),(<'zgp'),<'pnjtz'  NB.
>> rotated argument produces 1 here
>> 1
>>    intersection&>/|.(<'rcyshqp'),(<'jbdnpe'),(<'zgp'),<'pnjtz'  NB. no
>> blank lines
>> p
>>    intersection&>/(<'rcyshqp'),(<'jbdnpe'),(<'zgp'),<'pnjtz'  NB. Notice
>> blank lines here
>>
>>
>> p
>>    JVERSION
>> Engine: j807/j64/darwin
>> Release-c: commercial/2019-02-24T10:50:40
>> Library: 8.07.26
>> Platform: Darwin 64
>> Installer: J807 install
>> InstallPath: /users/brian/j64-807
>> Contact: www.jsoftware.com
>>
>> --
>> (B=)
>> ----------------------------------------------------------------------
>> 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