Skip to content

Instantly share code, notes, and snippets.

@frgomes
Last active November 27, 2015 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frgomes/b5bb5845abbda49fae33 to your computer and use it in GitHub Desktop.
Save frgomes/b5bb5845abbda49fae33 to your computer and use it in GitHub Desktop.
Scala - For comprehension monad with extractor magic
for(row <- sheet.rows if (row.index == index); Cell(cindex, data) <- row.cells) yield { (cindex, data) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment