Command-line arguments: Difference between revisions
Content added Content deleted
(Spelling) |
(Add Racket solution) |
||
Line 1,112: | Line 1,112: | ||
please update this example! |
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}}== |
=={{header|RapidQ}}== |