>>  <<  Ndx  Usr  Pri  Phr  Dic  Rel  Voc  !:  wd  Help  Dictionary

Rank m"n  

The verb m"n produces the constant result m for each cell to which it applies. The rank used is 3 $&.|. n . For example, if n=:2, the three ranks are 2 2 2, and if n=: 2 3, they are 3 2 3 . A negative rank is complementary: m"(-r) y is equivalent to m"(0>.(#$y)-r) y .
 

Thus:
   v=: 2 3 5 7
   m=: i. 2 3
   m ; (m"0 v) ; (m"1 v); (m"1 m)
+-----+-----+-----+-----+
|0 1 2|0 1 2|0 1 2|0 1 2|
|3 4 5|3 4 5|3 4 5|3 4 5|
|     |     |     |     |
|     |0 1 2|     |0 1 2|
|     |3 4 5|     |3 4 5|
|     |     |     |     |
|     |0 1 2|     |     |
|     |3 4 5|     |     |
|     |     |     |     |
|     |0 1 2|     |     |
|     |3 4 5|     |     |
+-----+-----+-----+-----+

   v m" 1 2 m
0 1 2
3 4 5
The verbs _9: through 9: are constant verbs, equivalent to _9"_ through 9"_ . For example:
   odds=: 1: + 2: * i.
   odds 5
1 3 5 7 9



>>  <<  Ndx  Usr  Pri  Phr  Dic  Rel  Voc  !:  wd  Help  Dictionary