Actually, thinking about it now, there's nothing specific to characters in the  
cs  algorithm (no  a.i.  for example). So change:

           t,'?'
to:
           ({.~ >:@:#) t

and:
           'f t' =.  

to:
           'f t' =.  <"1 

and you get a general scalar-substition dyad.


-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to