Anonymous user
Command-line arguments: Difference between revisions
Add Racket solution
(Spelling) |
(Add Racket solution) |
||
Line 1,112:
please update this example!
=={{header|Racket}}==
The following is the simplest program that prints the command-line arguments:
<lang lisp>
#lang racket
(current-command-line-arguments)
</lang>
You can also explicitly print each argument to standard output:
<lang lisp>
#lang racket
(for ([arg (current-command-line-arguments)])
(displayln arg))
</lang>
=={{header|RapidQ}}==
|