[Jprogramming] lazily look for label?

bob therriault bobtherriault at mac.com
Wed Oct 12 22:54:23 HKT 2011


Hi Xin,

If you know the length of the string that you want to search, the easiest way is to shorten it before you search.

'label' I. at E. 12&{. 'label1label2label3'  NB. searches first 12 characters of string
0 6

   id=: (I. at E. 12&{.)  NB. dyadic hook that will search the first 12 characters

   'label' id 'label1label2label3' 
0 6

Cheers, bob


On 2011-10-12, at 7:34 AM, Zheng, Xin (NIH) [C] wrote:

> 'label' I. at E. 'label1label2label3' 



More information about the Programming mailing list