« first day (262 days earlier)      last day (1273 days later) » 

10:16 PM
1 -1 0"az"?"a..z"
1 0 0 -1
is this documented somewhere?
it works in k7 and q/k4
i saw it in some q code
can't seem to find it in q ref
 
what do you mean? x?y is find "az"?"a..z" returns the indexes of y in x and #x if it is not found. This might be 0N in some versions of k.
1 -1 0... next to "az"... is like indexing 1 -1 0@...
 
"az"?"a..z"
0 2 2 1
isn't the 1 -1 0 giving find the values for the matches?
1 for a; -1 for z; 0 for not found
or am i reading this wrong?
 
no this is a separate expression. you have:
1 -1 1@("az"?"a..z")
find only sees "az" and "a..z"
 
ahhh
dumb me
i get it
thank you
the @ is implicit there somehow
what is/are the rules for that?
 
10:31 PM
@rcabaco some call it juxtaposition. putting two things side-by-side is an implicit @, such as a:"abc"; i:0 2 then a@i or a i is the same thing.
 
ok, need to pay more attention
and use p@ more often (or just p)
 

« first day (262 days earlier)      last day (1273 days later) »