Help / Release / J 6.02 / i. Extended

From J Wiki
Jump to navigation Jump to search


>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release



i. Extended

initial writing: 2007-05-15
last updated: 2007-11-07


Previously, x i. y signalled error if the rank-r cells of y do not have the same shape as the the rank-r cells of x , or if y has rank less than r , where r=:0>.(#$x)-1 is the rank of an item of x . For example:

   x=: i.10 2 3
   y=: i.4 5 2 4
   x i. y
|length error
|   x     i.y

This has been changed to return #x for each rank-r cell. Thus:

   x i. y
10 10 10 10 10
10 10 10 10 10
10 10 10 10 10
10 10 10 10 10

Note that x i. y already returned #x for cells having a wrong type, a situation no less egregious than having a wrong shape.

   x i. 4 2 3$'deipnosophist'
10 10 10 10

The dyads i: e. -. have also been extended similarly.



>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release