This directory contains a (fairly random) collection of  simple  scripts
written in Miranda.  To try one out (eg fibs.m) say
	mira fibs
as a UNIX command - or if you are already inside a Miranda session, say
	/f fibs
to  make (e.g.) fibs.m your current script.  To get into this directory,
while in a Miranda session, say
	/cd <ex>

Each script has some explanatory comments in it.  To  read  the  current
script from within a Miranda session say
	/e
which  invokes the editor on the current script.  The scripts are listed
in groups, with some more advanced examples towards the end.   The  ones
marked (*) may be useful as libraries.

ack.m         the ackerman function
divmodtest.m  tests properties of div and mod
fibs.m        tabulates fibonacci numbers
hanoi.m       solves the problem `towers of hanoi'
powers.m      prints a table of powers
primes.m      infinite list of prime numbers
pyths.m       generates pythagorean triangles

hamming.m     prints hamming numbers
queens.m      all solutions to the eight queens problem
queens1.m     finds one solution to the eight queens problem
quicksort.m   Miranda definition of quicksort
selflines.m   curiosity - a self describing scroll of lines
stack.m       defines stack as an abstract data type
treesort.m    Miranda definition of treesort

edigits.m     infinite decimal expansion of the digits of `e' (literate script)
rat.m         package for doing arithmetic on rationals (*)
refoliate.m   a tree problem (literate script)
tsort         topological sort
matrix.m      matrix package (*)
set.m         defines set as an abstract data type (*)
kate.lit.m    a Miranda script that is also a LaTeX source file

genmat.m      parameterised version of matrix package (*)
just.m        text formatting program
mrev          (executable) Miranda version of the UNIX `rev' command
box           (executable) program for reboxing Miranda comments
box.m         function definitions for `box'
polish.m      testbed for unify.m, see below
unify.m       package for doing 1st order unification (*)
interact      (subdirectory) package for doing interactive I/O (*)
