Newsgroups: comp.lang.apl
Path: watmath!watserv1!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uunet.ca!geac!itcyyz!yrloc!rbe
From: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
Subject: Matrix Searching
Message-ID: <1991Dec4.161942.23875@yrloc.ipsa.reuter.COM>
Reply-To: rbe@yrloc.ipsa.reuter.COM (Robert Bernecky)
Organization: Snake Island Research Inc, Toronto
Distribution: comp.lang.apl
Date: Wed, 4 Dec 91 16:19:42 GMT

I just got the 1991/4 issue of the "ZARK APL Tutor News". The first 4
pages of the article are devoted to matrix searching in different
dialects of APL: 
    "Write a function... cmiota... which returns a vector of row indices
      that give the locations in A where rows of B first occur."

Functions range in length from one-liners to 21-liners. The shorter ones
are generally limited in capability (small number of columns handled, etc).

I can't resist posting the J solution:

           i.


Want to see it again?  i.

Bob

Robert Bernecky      rbe@yrloc.ipsa.reuter.com  bernecky@itrchq.itrc.on.ca 
Snake Island Research Inc  (416) 368-6944   FAX: (416) 360-4694 
18 Fifth Street, Ward's Island
Toronto, Ontario M5J 2B9 
Canada
