listFunctions.frink

View or download listFunctions.frink in plain text format

/** 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 $
}


View or download listFunctions.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 18492 days, 22 hours, 41 minutes ago.