Help / Release / J 4.06 / f/. Sparse Arguments

From J Wiki
Jump to navigation Jump to search


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



f/.

Sparse Arguments

initial writing: 2001-04-21
last updated: 2001-04-21


The dyads f/. now supports sparse arguments. For example:

   d=: ?. 20 $ 5
   v=: ?. 20 $ 100
   d ,: v
 0  3  2  2  1 0  3  3  4  1  2  4 0 0  2  3 0  1 0  2
13 75 45 53 21 4 67 67 93 38 51 83 3 5 52 67 0 38 6 41

   d +//. v
31 276 242 97 176
   ($.d) +//. v
31 276 242 97 176
   d +//. $. v
31 276 242 97 176
   ($.d) +//. $. v
31 276 242 97 176



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