Skip to content

Instantly share code, notes, and snippets.

@wfaler
Created February 16, 2011 01:28
Show Gist options
  • Save wfaler/828664 to your computer and use it in GitHub Desktop.
Save wfaler/828664 to your computer and use it in GitHub Desktop.
funcsig.scala
def getAbsoluteResource(path: String)(op: InputStream => Any) = {..}
def someInputStreamFunction(io: InputStream): Unit = {..}
// call the function:
getAbsoluteResource("/myPath.properties")(someInputStreamFunction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment