Collect the stream and pass it to a block.
> collect (block)
block
Use the second value in the stream
> echo 1 2 3 | collect { |x| echo $x.1 }