##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September 2016 # Modified: 2016-10-03/23:22-0400 ##+ # # to.icn, demonstrate to-by sequence generator # procedure main() writes("1 to 3: ") every writes((1 to 3) || " ") writes("\n1 to 5 by 2: ") every writes((1 to 5 by 2) || " ") writes("\n1 to 6 by 2: ") every writes((1 to 6 by 2) || " ") writes("\n1 to 7 by 2: ") every writes((1 to 7 by 2) || " ") writes("\n3 to 1:") every writes((3 to 1) || " ") writes("\n3 to 1 by -1: ") every writes((3 to 1 by -1) || " ") write() end