|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectFactorialTest
public class FactorialTest
A class containing a main program for testing out the evaluator.
| Constructor Summary | |
|---|---|
FactorialTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
When this program is run, it does the equivalent of the following ML program: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactorialTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
fun f n = if n = 0 then 1 else f(n-1)*n; val five = 6-1; f five;
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||