I guess my question is why this happens: Jose=: 13 :'(|x&+)/i.->:y' 4 Jose 38 37 Jose 4 : '(|x&+)/i.->:y' Is Jose really an adverb?
f=:/ type <'f' -------┐ │adverb│ L------- Linda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marc Simpson Sent: Wednesday, May 08, 2013 4:17 AM To: Programming forum Subject: Re: [Jprogramming] rosettacode On Wed, May 8, 2013 at 8:27 AM, Linda Alvord <[email protected]>wrote: > Since both verbs are dyadic, what is the meaning of 4 : in Josephus2 ? I'm not sure I understand your question-you defined Josephus2 as a dyadic verb. ':' is the explicit definition conjunction (m : n). Where the left argument 'm' is 4, a dyadic verb is produced; 'n' is the body of the verb. (See http://www.jsoftware.com/help/dictionary/d310n.htm.) Best, Marc ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
