What is your defiiniton of xy ? f =: (Y * X + Y)xy 1 2 f 3 4 |value error: xy
Linda -----Original] Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michal Wallace Sent: Tuesday, January 07, 2014 2:15 PM To: [email protected] Subject: [Jprogramming] blunt verbs (tacit x and y) Hey all, I made an adverb ('xy') that lets trains refer to their arguments explicitly. Example: f =: (Y * X + Y)xy 1 2 f 3 4 12 24 X and Y behave like [ and ], but reference the arguments of the whole train: 0 1 (2: X 3:)xy 4 5 0 1 0 1 (2: Y 3:)xy 4 5 4 5 I have no use for it yet, but it was fun to make. :) https://github.com/tangentstorm/tangentlabs/blob/master/j/tacitxy.ijs ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
