Re: What is up with the 'FIND' function?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu