(<,'h') E.  a0 0 0 1 0 0    (<,'dd') E.  a0 1 0 0 0 0
 

     Den 11:49 onsdag den 8. juli 2015 skrev Strale <[email protected]>:
   
 

 Hello I am trying to learn J
and trying to make a function to tokenise strings

I have tried the E. command but I cannot have it working to search 1 char
token

ex:
  [a=. ;: 'cc dd f h gg zz'

  ┌──┬──┬─┬─┬──┬──┐

  │cc│dd│f│h│gg│zz│

  └──┴──┴─┴─┴──┴──┘


  (<'h') E.  a

    0 0 0 0 0 0


but when I search for a pattern longer as 1 char it works

  (<'dd') E.  a

  0 1 0 0 0 0


How should I use the E. to works with tokens of 1 char length ?


Thank in advance

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

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

Reply via email to