[Jprogramming] Avoiding explicit loops

Raul Miller rauldmiller at gmail.com
Fri Aug 8 03:27:20 HKT 2008


On Thu, Aug 7, 2008 at 3:06 PM, Roger Hui <rhui000 at shaw.ca> wrote:
> {. at E. doesn't sound right to me.  {.x E. y is 1 iff x is a prefix
> of y, and for that computation x -: (#x){.y is much more efficient.
> Perhaps Raul meant to say something like (E.i.1:), the index
> of the first occurrence.  This latter phrase happens to be
> supported by special code.

I do not know enough about the width of the data, nor
the implementation of E. to know if ([ -: #@[ {. ])"1 would
be more efficient than {. at E."1 and I have not thought about
phrases like (] #~ [: *./@:-.@(0&=)@:> (E.i.1:)"1 L:0)

[But the requirement was to reject rows of a character
table when they were prefixed with one of a set of
specific character sequences, so {.x E. y does achieve
the desired end.]

-- 
Raul


More information about the Programming mailing list