u S: n 得到一條列 ,由 u
作用於引數的層級 n (意義同L:的右引數)。
例如, #0:S:0 y 為 y中葉片(層級 0 陣列)個數。
|
例如:
fetch=: >@({&>/)@(<"0@|.@[ , <@]) " 1 _
] t=: 5!:2 <'fetch' 一個結構複雜的陣列
+------------------------------------------------------+-+---+
|+-----------------+-+--------------------------------+|"|1 _|
||+-+-+-----------+|@|+--------------------+-+-------+|| | |
|||>|@|+-------+-+|| ||+--------------+-+-+|,|+-+-+-+||| | |
||| | ||+-+-+-+|/||| |||+-------+-+--+|@|[|| ||<|@|]|||| | |
||| | |||{|&|>|| ||| ||||+-+-+-+|@||.|| | || |+-+-+-+||| | |
||| | ||+-+-+-+| ||| |||||<|"|0|| | || | || | ||| | |
||| | |+-------+-+|| ||||+-+-+-+| | || | || | ||| | |
||+-+-+-----------+| |||+-------+-+--+| | || | ||| | |
|| | ||+--------------+-+-+| | ||| | |
|| | |+--------------------+-+-------+|| | |
|+-----------------+-+--------------------------------+| | |
+------------------------------------------------------+-+---+
< S: 0 t t的封裝葉片
+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+-+---+
|>|@|{|&|>|/|@|<|"|0|@||.|@|[|,|<|@|]|"|1 _|
+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+-+---+
11 {. t (; <@;) S: 0 1 {:: t 葉片與路徑的2-行表
+--+-----------+
|> |0 0 0 |
+--+-----------+
|@ |0 0 1 |
+--+-----------+
|{ |0 0 2 0 0 |
+--+-----------+
|& |0 0 2 0 1 |
+--+-----------+
|> |0 0 2 0 2 |
+--+-----------+
|/ |0 0 2 1 |
+--+-----------+
|@ |0 1 |
+--+-----------+
|< |0 2 0 0 0 0|
+--+-----------+
|" |0 2 0 0 0 1|
+--+-----------+
|0 |0 2 0 0 0 2|
+--+-----------+
|@ |0 2 0 0 1 |
+--+-----------+
||.|0 2 0 0 2 |
+--+-----------+
下個 前個
字彙
索引
主選單