我正在努力学习 APL。以下代码片段来自http://archive.vector.org.uk/art10011550,其中声明此代码就像用英语阅读“妈妈”一样简单!
R←((V⍳V)=⍳⍴V)/V
我试图从https://en.wikipedia.org/wiki/APL_syntax_and_symbols检查,我发现
R is outcome variable
← means gets a value
⍴ means number of components in each dimension of V
⍳ means vector of initial elements
因此,此代码处理输入变量 V 并生成输出变量 R。但是,我无法弄清楚此代码的确切含义或作用?有人可以在这里解释一下。谢谢。