|
|
Fishkill /
Reverse argumentsDownload: reverse.f The following program produces a reversed copy of its command line arguments, enclosed in starting and ending delimiters. # reverse command line arguments
banner(s) = "--- start ---" ++ nl ++ s ++ nl ++ "--- end ---"
combine(argv) = concat(intersperse(" ", argv))
rev = banner * reverse * combine * tail
main(_, argv) = (rev)(argv)
|