Mercurial > repos > rhope
view testlistliteral.rhope @ 120:cd25171e1bb2
Use List for Subsets instead of a Dictionary for performance reasons. Fix issue with List literals. Compiled compiler is now self-hosting.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 21 Oct 2010 23:55:15 -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")] } }