Hi Tracy; Note that you can define your verb tacitly:
cnot_gate =: (4 4 $ 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0) (+/ . *) ] I got tangled in the x vs. y trap as well. Another reason I tend towards tacit. >: ... ------------------------------------------------------------------------ |\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram) |/\| [EMAIL PROTECTED] | |\ | | The only real problem with APL is that BSc(Math) UNBF'83 | it is "still ahead of its time." Sapere Aude | - Morten Kromberg Natural Born APL'er | Demo website: http://156.34.64.78/ -----------------------------------------------------(INTP)----{ gnat }- ----- Original Message ----- From: "Tracy Harms" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, April 09, 2007 12:46 AM Subject: [Jprogramming] re. Verb length error basic question > When I attempt to reproduce this using J 5.04, I get a > different error report: > > cnot_gate =: 3 : '(4 4 $ 1 0 0 0 0 1 0 0 0 0 0 1 > 0 0 1 0) (+/ . *) (x.)' > cnot_gate (,. 0 1 0 1) > |value error: x. > | (4 4$1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0)(+/ .*)( > x.) > > (4 4 $ 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0) (+/ . *) > (,. 0 1 0 1) > 0 > 1 > 1 > 0 > > > > ____________________________________________________________________________ ________ > Don't get soaked. Take a quick peek at the forecast > with the Yahoo! Search weather shortcut. > http://tools.search.yahoo.com/shortcuts/#loc_weather > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
