##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-12/04:24-0400 ##+ # # put.icn, put elements to front of list # link lists procedure main() L := [1,2,3] L2 := put(L, 43, 42, 41) write(*L2, " ", L2[-1]) write(limage(L3)) every L3 := put(L2, 41 to 43) write(*L3, " ", L3[-1]) write(limage(L3)) # L, L2, L3 all reference the same list write(*L, " ", *L2, " ", *L3) end