indexof(source: text, pattern: text) 🡒 number, const pure function
Returns the index of the first occurrence of the pattern within the text, or −1, if no such occurrence is found.
source = "Hello World!" show summary "" a1c3 with indexof(source, "o") indexof(source, "!") indexof(source, "Z")
The index value returned by
indexof is frequently intended to be later consumed by the function