view testlistliteral.rhope @ 121:1af91ceaaf49

Fixed memory leak when an output is only attached to a single null input
author Mike Pavone <pavone@retrodev.com>
date Thu, 28 Oct 2010 21:04:12 -0400
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")] }
}