##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-17/04:19-0400 ##+ # # repl.icn, demonstrate element replication # link lists procedure main() write(repl("*", 24), " stars ", repl("*", 24)) r := 0 every feat := &features do { if find("Revision", feat) then { feat ? { ="Revision" tab(many(' ')) r := integer(tab(0)) } # for Unicon builds after 4608, repl works with lists if r > 4607 then { L := [1,2,3] write(limage(L)) write(limage(repl(L, 3))) } } } end