|
From: Dani M. <dan...@up...> - 2006-01-25 16:34:03
|
Hi all, I have a long 1D boolean array. I'd like to know where a certain 'sub'array (like, e.g., ([1,1,1,1,1,1])) occurs in the array. That is, I want the index of the first occurrence of a subarray in an array, avoiding the use of explicit loop structures to carry out the search. I am sorry if this happens to be a trivial question, but I was not able to find the answer from the documentation. Thanks a lot, dani |