-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
the following code:
refer from state (Channel)
def Counter(n :: Integer) =
val nr = Channel[Integer]()
nr.put(n) >>
(lambda () =
nr.get() >n>
( n | nr.put(n+1) >> stop ) )
Counter(0) >c> each(range(0,10)) >> c()
produces:
[INFO] Value: 0
when it should produce the range
[INFO] Value: 0
...
[INFO] Value: 9