Yes, the J dyad $ , is the same as the APL dyad "rho" and is supported by special code. See the opening paragraph of Appendix B of the dictionary:
http://www.jsoftware.com/help/dictionary/special.htm ----- Original Message ----- From: June Kim <[EMAIL PROTECTED]> Date: Sunday, February 18, 2007 4:18 am Subject: [Jprogramming] Re: Style and Literacy in APL > I did make mistakes. > > R=:$ , > > and replace f with spd in the following usage examples. > > 2007/2/18, June Kim <[EMAIL PROTECTED]>: > > After studying APL2 language reference for a while, it seems like > > APL's rho(reshape) and J's shape($) has different behaviour. > > > > R=:$@, > > spd=: 4 : 0 > > X=.y > > col=. x > > ((1{f),*/ 0 2{f ) R 1 0 2|:(f=.col,c%col,1)R(c=.d+(col|col-0{(d=. > > $X)),0){. X > > ) > > > > mat=.3 4 $'can you see ' > > 2 f mat > > can see > > you > > 3 f mat > > can you see > > $2 f mat > > 2 8 > > $3 f mat > > 1 12 > > > > This works. Didn't I make any mistakes? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
