+/ i.0 +/'' +/0{. 2 3 5
0 0 0
*/i.0 */'' */0{. 2 3 5
1 1 1
這樣的結果對分區數列很有用;因為可以確保即使有子分區為空集合,運算結果也不會出錯。例如:單位函數與其他函數的基本特徵(例如 秩) 可由副詞 b.
得到,
舉例如下:
^ b. _1 Inverse
^.
^ b. 0 Ranks
_ 0 0
^ b. 1 Identity 函數
$&1@(}.@$)
練習
| 28.1 | Predict與test results of following expressions: */'' <./'' >./'' >./0 4 4 $ 0 +/ . */ 0 4 4 $ 0 1 2 3 4 +&.^./ 5 6 7 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 28.2 | Experiment with 雙邊 {@; and
give term used to describe it in mamatics. 解答:Cartesian product | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 28.3 | Test assertion that 單邊 (%:@~. +/ . * =)
and %: are equivalent,與state utility of
former when applied to a list such as 1 4 1 4 2 that has
repeated 分子. 解答:函數 %: (which could be a 函數 costly to execute) is applied only to distinct 分子 引數(as selected by nub 函數 ~.). | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 28.4 | Comment on following experiments before reading
comments on 右:
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| 28.5 | A 片語such as f-:g may be a tautology
for 雙邊case only, for 單邊case only, or for both.
Use following tautologies as reading與writing exercises,
including statements of applicability (雙邊only, etc.):
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| 28.6 | Comment on following expressions before
reading comments on 右:
|