Mercurial > repos > rhope
diff functional.rhope @ 76:004f0fc8941f
Fix list implementation
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 07 Jul 2010 00:36:59 -0400 |
parents | 0083b2f7b3c7 |
children | 6d41b71f1b77 |
line wrap: on
line diff
--- a/functional.rhope Tue Jul 06 07:52:59 2010 -0400 +++ b/functional.rhope Wed Jul 07 00:36:59 2010 -0400 @@ -1,9 +1,6 @@ _Fold[list,index,current,worker:out] { - Print["_Fold"] - { Print[index] - { newval <- [worker]Call[current, [list]Index[index], index] [list]Next[index] @@ -12,18 +9,14 @@ }{ out <- Val[newval] } - }} } Fold[worker,start,list:out] { - Print["Fold"] [list]First { - Print["Got first"] out <- _Fold[list, ~, start, worker] }{ - Print["no first"] out <- start } }