view testlistliteral.rhope @ 179:64be565a40c6

Implement If method on List, fix Get Char to handle end of file, fix nested list pretty printing
author Mike Pavone <pavone@retrodev.com>
date Sat, 18 Jun 2011 11:11:58 -0700
parents e73a93fb5de1
children
line wrap: on
line source


Print List[idx, list]
{
	[list]Index[idx]
	{
		Print[~]
		{ Print List[[idx]+[1], list]}
	}
}

Main[]
{
	Print[Fold[+[?], 0, (5,27,39,43)]]
	{ Print List[0, ("foo","bar","baz")] }
}