Skip to content

Instantly share code, notes, and snippets.

@NRBPerdijk
Created April 26, 2019 12:28
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 NRBPerdijk/c093d7d313727e2f527fc8891f569f59 to your computer and use it in GitHub Desktop.
Save NRBPerdijk/c093d7d313727e2f527fc8891f569f59 to your computer and use it in GitHub Desktop.
// This function signature is a lot cleaner than the one that doesn't use bindings.
// It is also completely Scala, meaning we do not have to do ANY parsing.
val rMagicWithBindings: String => WeatherForecastList =
context.eval(sourceWithBindings).as(classOf[String => WeatherForecastList])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment