       == Example programs for RiscLua  ==

You need to have filer_booted !rlua for these to run.

collatz
 Run this in a taskwindow. The Collatz conjecture asserts that
starting with a positive number and repeatedly halving if it is even
and multiplying by three and adding one if it is odd, eventually
the number one is reached. This calculates the number of steps.
The algorithm is not for efficiency but to demonstrate how
to use tables of functions for mutual recursion.

factors
 Run this in a taskwindow. Outputs the prime factors and their
multiplicities, of the input integer.

emptytemp 
 Deletes empty directories in the directory in which it resides.

leadzero
 Inserts leading zeroes into numeric suffixes of filenames in the
 directory in which it resides.

CRC
 Drag a file to the ? icon on the pinboard to get its size
and CRC value.
thisdir
 Prints out the filetypes of all the objects in the directory in
 which it resides. It demonstrates the use of the riscos library
 for using dim to allocate memory, ! for word-indirection, $ for
 string indirection, sys for calling SWIs and dir for iterating
 over a directory.


draw - creating draw files. Doubleclick to see them.

wimp - wimp tasks. See its Readme file.


-- Gavin Wraith
mailto:gavin@wra1th.plus.net