[Jprogramming] substring matching between two arrays

'Mike Day' via Programming programming at jsoftware.com
Mon Nov 12 23:17:52 UTC 2018


or this variant?
 f(1 i.~"1+./@E.~&> /)s. NB. f & s obvious?
0 0 1 2
This lists the index of the first instance of a substring of each element of fullNames in the 
shortNames boxed list. It assumes it's there somewhere, but you can use the property 
that non-inclusion is shown by index = length or number of shortNames.
Any help,
Mike
> On 12 Nov 2018, at 22:29, Brian Schott <schott.brian at gmail.com> wrote:
>> Is this anything you can use?
>> I.fullNames(((]))&: >"0/-:"1 ((#@]{.[))& >"0/) shortNames
>>> -- 
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list

AltStyle によって変換されたページ (->オリジナル) /