Though its hard to see usefulness of the feature, it does have the advantage of shortcutting parsing for a primitive, and it is extremely unlikely that you want to use !. with a "random" verb, and so a sentence would be tied closely to !., and its likely that the sentence was not intended.
Still, there is a workaround: head f. !.1 '' 1 ________________________________ From: Raul Miller <[email protected]> To: Programming forum <[email protected]> Sent: Wednesday, June 18, 2014 7:27:08 AM Subject: Re: [Jprogramming] left argument for !. I think it's a feature. -- Raul On Wed, Jun 18, 2014 at 7:02 AM, bill lam <[email protected]> wrote: > I found !. does not work if the verb on its left is a name instead of > primitive, eg > > {. !.1 '' NB. ok > head=. {. > head !.1 '' NB. domain error > > Is this a feature or a bug? > > Interestingly assigning a name to !. itself is ok > > {.fit 1 '' > > tested on J6 and J7 engine. > ---------------------------------------------------------------------- > 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
