Command-line arguments: Difference between revisions

Content added Content deleted
(Add Global Script example)
Line 714: Line 714:


=={{header|Global Script}}==
=={{header|Global Script}}==

Command-line arguments are passed to the main program as a linked list of strings (which are also linked lists).


This uses the <code>gsio</code> I/O operations, which are designed to be simple to implement on top of Haskell and simple to use. It also uses impmapM, which is a specific specialization of mapM for the HSGS implementation.
This uses the <code>gsio</code> I/O operations, which are designed to be simple to implement on top of Haskell and simple to use. It also uses impmapM, which is a specific specialization of mapM for the HSGS implementation.