So, what is the difference between v and u (apart from size and performance)? The verb u is based on the verb train that bends the rules and train can produce any type of word, for instance,
JVERSION Installer: j602a_win.exe Engine: j701/2011-01-10/11:25 Library: 6.02.023 train <'/' / + train <'/' 1 2 3 4 10 A verb producing an adverb? That is a serious offense! In contrast, u is based on the verb ]^:] and ]^:] follows the rules; therefore, it can never produce... lightsaber=. '/' (1 :) (]^:]) 0:`(<'lightsaber') / + (]^:]) 0:`(<'lightsaber') 1 2 3 4 10 "The power of the dark side" https://www.youtube.com/watch?v=esEcwAWi6dk Oh boy, no wonder Dan used the word “sneaky” in connection with ]^:]. It turns out that ]^:] is a dangerous cheater in disguise! Then again, Raul wrote, " Oh, but that's cheating! Um... why? It's not, not really. You learn from whatever interests you. That said, it *can* be an interesting exercise to construct sensibly named concepts for building that kind of data structure. " "We would be honored if you would join us" https://www.youtube.com/watch?v=uHH6YVHGh90 :) On Sun, Feb 1, 2015 at 11:16 PM, Jose Mario Quintana < [email protected]> wrote: > > So far two main tacit solutions have been shown. The first, bending the > rules, > > an=. <@:((,'0') ,&< ]) > Cloak=. ((5!:1)@:<'Cloak')Cloak=. (0:`)(,^:) > train=. (Cloak <'`:')&6 NB. `:6 verbalized > > ( v=. train@:({.@:(0&({::)) ; an@:>@:{:) f. ) > ,^:(0:``:)&6@:({.@:(0&({::)) ; <@:((,'0') ,&< ])@:>@:{:) > > The second, following the rules, > > fe=: 13 : 0 > '0:';<'@:';<((0;0){::y);<(,'"');<((,'0');1{::y);<((,'0');_) > ) > > ( u=. ]^:] fe f. ) > ]^:] ('0:' ; [: < '@:' ; [: < ((0;0) {:: ]) ; [: < (,'"') ; [: < > (<(,'0');_) ;~ (,'0') ; 1 {:: ]) > > Let us compare them, > > Y=. +:`*:;i.5 > > (u -: v) Y > 1 > > sp=. 7!:5@:< > sp&> ;:'u v' > 2432 1920 > > st=. (, */&.:>@:(1 2&{))@:(] ; 7!:2@:] ; 6!:2) > 10000 st&> 'u Y' ; 'v Y' > ┌───┬────┬──────────┬──────────┐ > │u Y│2624│1.49229e_5│0.0391576 │ > ├───┼────┼──────────┼──────────┤ > │v Y│1920│4.96943e_6│0.00954131│ > └───┴────┴──────────┴──────────┘ > > By the way, Patriots 28 Seahawks 24, a fine example that bending the rules > pays off ;) > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
