User:RE Boss/J-blog

From J Wiki
Jump to: navigation, search

Thoughts on J ::

scores=:  5 ts&> ]

rnkng=: 3 : '([:(,~/:@/:@{.) [:(%<./)"1(,~*/)) &.|: y'

dspl=: 3 : 0	NB. y is output of rnkng; x is boxed names of verbs or formulas, or empty
z=: '2.0,0.2,0.2,0.2'(8!:0) y
z=: ('rank';'rlt_prf';'rlt_et';'rlt_sz'),z
:
NB.  ('verbs';((<' '),&.>x),.((5!:5)`(5!:2)@.(0<[:# 1(5!:7)]))&.> R=:<"0 x),.~z
z=: '2.0,0.2,0.2,0.2'(8!:0) y
z=: ('rank';'rlt_prf';'rlt_et';'rlt_sz'),z
 ('verb';x),.z
)