Help / Release / J 5.01 / ];.0 Improved

From J Wiki
Jump to navigation Jump to search


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



];.0 Improved

initial writing: 2001-07-10
last updated: 2004-10-26


The 0-cut ];.0 (also [) on vector and matrix right arguments is now implemented by special code, resulting in time/space savings. For example:

   v=: 1e4$'asdf'
   ] p=: ?.2##v
1315 7556

   m=: ?111 97$1e6
   ] q=: ?. 2 2$$m
14 73
50 51

   ts=: 6!:2 , 7!:2@]
ts       J4.06       J5.01
((+i.)/p){v 0.000554260  75136 0.000556495 75136
(,.p) ];.0 v    6.06781e_4  107840    3.68762e_5   9344
q ];.0 m 4.16254e_5   10304 3.07302e_5   9088




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