Skip to content

Instantly share code, notes, and snippets.

@tonyjunkes
Created August 17, 2016 04:32
Show Gist options
  • Save tonyjunkes/f36430484a94401d60cfea03c2ce87b3 to your computer and use it in GitHub Desktop.
Save tonyjunkes/f36430484a94401d60cfea03c2ce87b3 to your computer and use it in GitHub Desktop.
print( ['a', 'at', 'cat', 'scat', 'catch'].find { it ==~ '.+at' } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment