view testlistliteral.rhope @ 94:05c22ff4b4ed

Forgot to add this with a prior commit
author Mike Pavone <pavone@retrodev.com>
date Mon, 02 Aug 2010 01:00:37 -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")] }
}