Skip to content

Instantly share code, notes, and snippets.

@pydemo
Last active May 17, 2018 19:27
Show Gist options
  • Save pydemo/05260832d74839bfe4a626d3baa9add9 to your computer and use it in GitHub Desktop.
Save pydemo/05260832d74839bfe4a626d3baa9add9 to your computer and use it in GitHub Desktop.
import scala.language.postfixOps
scala> object ? {def z(s: Any) {println(s)}}
defined object $qmark
scala> ?z "Hello world"
Hello world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment