ĵaŭ, 18 Mar 2010, Zsbán Ambrus skribis:
> 2010/3/18 Frederick W Mellem <mell...@frontiernet.net>:
> >   i.&.>("0) 4 2 3
> >
> > --------T---T-----┐
> >
> > │0 1 2 3       │0 1   │0 1 2     │
> >
> > L-------+---+------
> >
> >   i.&.(>"0) 4 2 3
> >
> > --T-T-T-┐
> >
> > │0 │1 │2 │3 │
> >
> > +-+-+-+-+
> >
> > │0 │1 │  │   │
> >
> > +-+-+-+-+
> >
> > │0  │1│2 │  │
> >
> > L-+-+-+--
> 
> > Please explain the scalar boxing.  I assume it is correct,  but I don't see
> > why >("0) is different from  (>"0)
> 
> Those two would be exactly the same, but the difference is because
> (i.&.>("0)) is the same as ((i.&.>)"0).
> 
> TVhe scalar boxing is because the inverse of (>"0) in J is (<"0) so
> (i.&.(>"0) 4 2 3) is the same as (((<"0)@:i.@:(>"0)"0) 4 2 3) in which
> (<"0) boxes each atom in the output individually.
> 



The verbs > and >"0  should be the same but their inverse differs

   > b. _1
<

   >"0 b. _1
<"0

Not sure if this is a bug or a feature.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to