scala-collections
Dealing with the surprising lack of ParList in scala.collections.parallel
So scala 2.9 recen开发者_运维百科tly turned up in Debian testing, bringing the newfangled parallel collections with it.[详细]
2023-03-19 17:57 分类:问答How to append or prepend on a Scala mutable.Seq
There\'s something I don\'t understand about Scala\'s collection.mutable.Seq. It describes the 开发者_JAVA百科interface for all mutable sequences, yet I don\'t see methods to append or prepend element[详细]
2023-03-19 08:53 分类:问答Auto conversion between scala and java collections when using scala.collection.JavaConversions._ in scala 2.8
I have java API which return this type: ArrayList[ArrayList[String]] = Foo.someJavaMethod() In scala program, I need to send above type as a开发者_Go百科 parameter to a scala function \'bar\' whose[详细]
2023-03-19 01:32 分类:问答extending scala collections with new attribute
If I have a new collection with an additional attribute, e.g. : class NewColl(var name: String, var values: Vector[Int])[详细]
2023-03-18 23:58 分类:问答Using collect on maps in Scala
I recently stumbled over this post, which \"introduces\" the collect method for Scala collections. The usage is straight forward:[详细]
2023-03-18 23:54 分类:问答Google guava vs Scala collection framework comparison
There are a lot of common concepts: immutable collection, collection view, strict/non strict collection,[详细]
2023-03-18 16:17 分类:问答Argument type of anonymous function
开发者_Go百科I\'m having some trouble with this code. It\'s supposed to be an OperationTree with Elements BinaryOperations and UnaryOperations.[详细]
2023-03-16 17:50 分类:问答Trouble with generic collections in Scala
I\'m puzzled as to how to solve this in Scala. In Java I\'d give up on generics or use casts, but Scala is more strict than that. Here\'s what I have.[详细]
2023-03-13 09:07 分类:问答How are Scala 2.9 parallel collections working behind the scenes?
Scala 2.9 introduced parallel collections. They are a really great tool for certain tasks. However, how do they work internally and am I able to influence the behavior/configuration?[详细]
2023-03-12 18:19 分类:问答Adding immutable Vectors
I am trying to work more with scalas immutable collection since this is easy to parallelize, but i struggle with some newbie problems. I am looking for a way to create (efficiently) a new Vector from[详细]
2023-03-09 13:55 分类:问答