Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. "%-10s %-50s %s".format _
  2. <console>:13: error: missing arguments for method format in trait StringLike;
  3. follow this method with `_' if you want to treat it as a partially applied function
  4. "%-10s %-50s %s".format _
  5.  
  6. import scala.collection.immutable._
  7.  
  8. scala> ("%-10s %-50s %s": StringLike[_]).format _
  9. res91: Seq[Any] => String = <function1>
  10.  
  11. scala> val f: Seq[Any] => String = "%-10s %-50s %s".format
  12. f: Seq[Any] => String = <function1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement