recursiontest.sml

  Download

More scripts: SML Fundamentals

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
$warnings 3  # Set warning level 3
clear();
func countdown(numeric n)
{
	print(n);
	if(n > 0)
		countdown(n-1);
}
countdown(10);