##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:39-0400 ##+ # # Breakx.icn, demonstrate the extended Break pattern match # procedure main() # this Break match stops at the first "e" s := "integers" s ?? Break("e") -> found || "er" write("Matched: ", found) # this Breakx match tries twice, a second "e" is followed by "er" s ?? Breakx("e") -> found || "er" write("Matched: ", found) end