RosettaCodeData/Task/Command-line-arguments/Standard-ML/command-line-arguments.ml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
220 B
Standard ML

print ("This program is named " ^ CommandLine.name () ^ ".\n");
val args = CommandLine.arguments ();
Array.appi
(fn (i, x) => print ("the argument #" ^ Int.toString (i+1) ^ " is " ^ x ^ "\n"))
(Array.fromList args);