# yield
Yield a value from a coroutine or generator.
## Syntax
yield $value
## Examples
defcoro counter {|max| for i [range $max] { yield $i } } set c [counter 5] echo [next $c] # 0 echo [next $c] # 1
## See Also
`defcoro`, `return`