view testlistliteral.rhope @ 168:d2b941f82d74

Fix type of list constants in inference pass and return type of some Array related workers
author Mike Pavone <pavone@retrodev.com>
date Sun, 01 May 2011 18:41:17 -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")] }
}