core :: Sys :: gen_generics
The size of the array equals the arity of the class.
# Generates of an array of formal type as strings. # The size of the array equals the arity of the class. fun gen_generics(nargs: Int): Array[String] do var args = new Array[String] for i in [0..nargs[ do args.push("A" + i.to_s) end return args end