##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-08/12:17-0400 ##+ # # key.icn, generate the keys of a structure # link wrap record sample(x,y,z) procedure main() L := [1,2,3] R := sample(1,2,3) T := table() insert(T, "a", 1, "b", 2, "c", 3) write("keys of list L, record R, table T") wrap() every f := L | R | T do { every writes(wrap(key(f) || ", ")) write(wrap()[1:-2]) } end