350 results found for _*
Syntax sugar: _* Syntax sugar: _* I just noticed this construct somewhere on web: val list = List(someCollection: _*) What does _* mean? Is this a
http://stackoverflow.com/questions/4176440/syntax-sugar
println( String.format(msf, o :: os.toList : _* ) ) or def foo(msf: String, o: AnyRef, os: AnyRef*) = println( msf format (o :: os.toList : _* ) ) I much
http://stackoverflow.com/questions/1008783/using-varargs-from-scala
Any*) = ... //varargs parameter, use as an Array[Any] val list = Seq("a", 42, 3.14) //a Seq[Any] myMethod(list : _*) The ending part : _* converts a
http://stackoverflow.com/question...interpret-scala-syntax-for-varargs
be a sequence argument via a _* type annotation. If m above is applied to arguments (e1, . . . , en,e0 : _*), then the type of m in that application is
http://stackoverflow.com/question...-colon-underscore-star-do-in-scala
will look something like: docs - _* mwbuild - _* local-settings *.pyc i.e., not split along line boundaries. Maybe more sed/awk magic would make that
http://stackoverflow.com/question...recursive-list-of-svnignored-files
_ ) => println( "Four elements, with the second being '3'." ); case List( _* ) => println( "Any other list with zero or more elements" ); case _ =>
http://stackoverflow.com/question...t4-18-52-in-scala-match-expression
*.user, *.suo, bin, obj, .* and _* to my ignore list... if there's one of the above I want added, I can still add it manually.
http://stackoverflow.com/questions/507343/using-git-with-visual-studio
Map("topics"->Set("economic","politic") ,"tag"->Set("Libya","evolution")) Tags: scala taxonomy(notFormattedTerms.toSeq:_*) With : _* you virtually transform a sequence argument so that it
http://stackoverflow.com/question...-variable-length-argument-in-scala
append the array argument with a colon and an _* symbol, like this: scala> echo(arr: _*) This notation tells the compiler to pass each element of arr as
http://stackoverflow.com/question...e-and-star-in-lifts-sitemapentries
foo(args:String*) = bar(args: _*) foo: (args: String*)Unit scala> foo("1", "2") count=2 You can use : _* on any subtype of Seq , or on anything implicitly convertable
http://stackoverflow.com/question...peated-parameters-to-other-methods