[Jprogramming] why=: 13 :'y*y*y'
Linda Alvord
lindaalvord at verizon.net
Sat Mar 17 15:43:36 HKT 2012
David Ward Lambert pointed out the known pitfall that occurs using : 13 :
Would these examples help in correcting the problem?
why=: 13 :'y+y' NB. wrong
why
+
why 3
3
why=: 13 :'y-y' NB. right
why
-~
why 3
0
why=: 13 :'y*y' NB. wrong
why
*
why 3
1
why=: 13 :'y%y' NB. right
why
%~
why 3
1
why=: 13 :'y+y+y' NB. wrong
why
] + +
why 3
6
why=: 13 :'y-y-y' NB. right
why
] - -~
why 3
3
why=: 13 :'y*y*y' NB. wrong
why
] * *
why 3
3
why=: 13 :'y%y%y' NB. right
why
] % %~
why 3
3
Linda
More information about the Programming
mailing list