Wow! One can learn a lot of tacit J just by analysing that example: bc=: < 0&(, + ,~) 1:
Actually it's just what I'm looking for: it shows a use of (1:) where it is required to eat the unwanted right-argument (=10) it is called with, and return 1. So it can't just be replaced with the noun: 1. When I've got a spare moment I'll filter this thread through my newbie mind and write it up for Vocabulary/zerocol. But perhaps the whole business is best discussed in Rank (Vocabulary/quote) under (NOUN"_) ? Ian PS: I'm reminded of Brian Gaines's description of American English: "Every noun can be verbed." :) On Mon, Feb 15, 2010 at 3:13 AM, Dan Bron <[email protected]> wrote: > Roger: >> (0&, + ,&0)^:(i.10) 1 > > Viktor: >> Variation: >> 0 (, + ,~)^:(i.10) 1 > > Further variation: > > (<10) 0&(, + ,~) 1 > > And hey, Ian, here's an example of where the constant verbs are still useful, > despite the introduction of the NVV train: > > bc =: < 0&(, + ,~) 1: NB. Try bc 10 . > > Note that without 1: I would've had to write 1"_ (which is less > tasteful). > > -Dan > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
