Re: What is up with the 'FIND' function?
- Posted by ZNorQ <znorq at holhaug.com> Mar 28, 2006
- 565 views
Jules Davy wrote: > > Hi Ken, > > This discrepancy arises because an atom is not equivalent to a one element > sequence > containing the same value. Therefore, to use your example, eRevision does not > contain > 'c', but "c" (because it has been declared as a sequence). If you declare > eRevison > as an atom then > > eFindResult = find(eRevision, zALPHA) > > will return 3, as required. > > Alternatively you could replace the "find" function with "match", this finds > a > sequence as a SLICE of another sequence. So > > eFindResult = match(eRevision, zALPHA) > > will also return 3. > > Not sure whether this has helped or made you more confused!