proper commas_quote;
authorwenzelm
Fri, 20 Jul 2012 12:00:08 +0200
changeset 49377c3192ccb0ff4
parent 49376 63bdba7c1366
child 49378 cf081b7042d2
proper commas_quote;
src/Pure/library.scala
     1.1 --- a/src/Pure/library.scala	Fri Jul 20 11:52:20 2012 +0200
     1.2 +++ b/src/Pure/library.scala	Fri Jul 20 12:00:08 2012 +0200
     1.3 @@ -100,7 +100,7 @@
     1.4  
     1.5    def quote(s: String): String = "\"" + s + "\""
     1.6    def commas(ss: Iterable[String]): String = ss.iterator.mkString(", ")
     1.7 -  def commas_quote(ss: Iterable[String]): String = ss.iterator.mkString("\"", ", ", "\"")
     1.8 +  def commas_quote(ss: Iterable[String]): String = ss.iterator.map(quote).mkString(", ")
     1.9  
    1.10  
    1.11    /* reverse CharSequence */