Contains vs is in

Richard Gaskin ambassador at fourthworld.com
Mon Jan 2 17:44:09 EST 2017


hh wrote:

 > There is a "contains"-repeat and a "is in"-repeat.
 > If I use one as first and the other as second repeat loop I get that
 > the one that is called first is a little bit faster ...
 >
 > Isn't it that deep in the stomach of LC both use the same
 > offset(substring, string) routine?

I would imagine so.

If not, perhaps they should.  I can't think of a case where they would 
need to produce different results.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list