Skip to content

Instantly share code, notes, and snippets.

@timyates
Created June 7, 2012 13:51
Show Gist options
  • Select an option

  • Save timyates/2888888 to your computer and use it in GitHub Desktop.

Select an option

Save timyates/2888888 to your computer and use it in GitHub Desktop.
Using groovy-stream via @grab
@GrabResolver( name='bloidonia', root='https://raw.github.com/timyates/bloidonia-repo/master')
@Grab('com.bloidonia:groovy-stream:0.2')
import groovy.stream.Stream
def s = Stream.from 1..4
assert [1,2,3,4] == s.collect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment