Skip to content

wrong output #11

@jsulmont

Description

@jsulmont

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions