/** This simple program lists the names of all functions. Its output can be saved to a file and used to make a completion list for a program like rlwrap which allows interactive editing on the command-line rlwrap -b '$' -f [filename] frink */ functions = lexicalSort[functions[]] for f = functions { f =~ %s/\s+//g // Remove whitespace (rlwrap always breaks on whitespace) println["$f$"] // Print lines ending with $ }