Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2017 06:55
Embed
What would you like to do?
the description for this gist
val stringToIntPrism = Prism[String, Int](str => Try(str.toInt).toOption)(_.toString)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment