The origin of the list (string if you prefer), isn't important. Other methods of searching a string are likewise not being sought.
My question is specific to the LOOKDOWN command: I am seeking to establish the usefulness (or otherwise) of this somewhat unique command. Is LOOKDOWN capable of returning more than just the position of one instance of a character, when that character may feature more than once within a string (or list of characters) ?
Maybe an example would clarify my question.
Suppose I have a string "mississippi", and search that string for the character 'i' using LOOKDOWN. Which 'i' position will LOOKDOWN return ? (The first, or the last - the manual doesn't say) Then, is there a way that LOOKDOWN can be 'coerced' into returning the position of all four 'i' s ?
Bookmarks