Fortress by Example
Do you want to look and feel Fortress? Are you ready to write Fortress programs? Do you know how one would write quick sort in Fortress? Are you curious how Fortress programs would read from and write to files?
Here is a good place to start. We hope to provide many Fortress examples to help you learn Fortress more easily. The examples will show you how a particular problem would be written in Fortress and how a particular Fortress construct would be used. Each example will ideally include lots of explanation as to why something is written the way it is and some metaphors with other languages. Please let us know what problems you would like to write in Fortress and what features you would like to know how to use.
The current Fortress examples are:
- A simple program to calculate integer square root
- Various ways to write Fibonacci
- Tic tac toe
- File reads and writes
- Buffons needle
- Featherweight Java
- Pythagorean Triples using List Comprehensions
- Relaxation test for a visoelastic material
- Fortress comments can use Wiki Creole markup
- Very simple string-to-float conversion
Please feel free to include your own examples in Fortress!

