miraTo load in an existing file named myfile.m, type
mira myfile.mFor a list of useful commands within Miranda type /help. These include the ability to edit the current program (or script, to use Miranda terminology). To do this, type /edit. The newly edited script is then loaded in. Other commands:
/man - online manual /quit (or control d)The standard environment (visible as an option in the online manual) is a good place to look for Miranda functions written in good style.
The default editor is vi, but you can change this by adding the following line to your .cshrc file:
setenv EDITOR /usr/local/bin/emacsMiranda is an interactive text-oriented environment. Examples:
Miranda 3+4 7 Miranda 8 : [1..10] [8,1,2,3,4,5,6,7,8,9,10] Miranda [1,2,3] ++ [8,9] [1,2,3,8,9] Miranda member [1,2,3] 8 FalseTo define a function:
double x = x+xFunction and other definitions must go in a file (script); Miranda distinguishes between definition mode (when reading from a file) and evaluation mode.