##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September 2016 # Modified: 2016-10-03/22:53-0400 ##+ # # find.icn, demonstrate the find string scanning position generator # procedure main() if (p := find("xyz", "abc xyz def ghi xyz", 1, 0)) > 5 then write(p) write() s := "The rain in Spain stays mainly in the plain" write("Subject: ", s) write("substring: in") s ? every write(find("in")) end