scala-2.7 Questions

10

Solved

Related to Stack Overflow question Scala equivalent of new HashSet(Collection) , how do I convert a Java collection (java.util.List say) into a Scala collection List? I am actually trying to conve...
Kismet asked 23/3, 2009 at 18:46

4

Solved

Can I "yield" into a Map? I've tried val rndTrans = for (s1 <- 0 to nStates; s2 <- 0 to nStates if rnd.nextDouble() < trans_probability) yield (s1 -> s2); (and with , instead of...
Pythia asked 18/11, 2010 at 10:56

2

Solved

I'm trying to create a trait that, when mixed in, will replace the default definition of a method with one that calls the original method and then manipulates the result. Here's what I'm trying to...
Webber asked 27/7, 2011 at 18:51

4

Solved

I've been using Eclipse since 2.x and IDEs in general for over 20 years (since Turbo Pascal and Turbo C in the late '80s!). (that preamble is supposed to imply, "I'm not an idiot" ... but doesn't ...
Octofoil asked 19/4, 2010 at 5:12

9

Solved

I recently gave up trying to use Scala in Eclipse (basic stuff like completion doesn't work). So now I'm trying IntelliJ. I'm not getting very far. I've been able to edit programs (within syntax h...
Aggregation asked 19/4, 2010 at 14:25

1

Solved

I'm trying to find a cleaner alternative (that is idiomatic to Scala) to the kind of thing you see with data-binding in WPF/silverlight data-binding - that is, implementing INotifyPropertyChanged. ...
Invaluable asked 26/5, 2010 at 19:21

3

Solved

My scala version 2.7.7 Im trying to extract an email adress from a larger string. the string itself follows no format. the code i've got: import scala.util.matching.Regex import scala.util.matchi...
Littman asked 17/5, 2010 at 0:8

3

Solved

If I have an immutable Map which I might expect (over a very short period of time - like a few seconds) to be adding/removing hundreds of thousands of items from, is the standard HashMap a bad idea...
Marquet asked 19/2, 2010 at 16:49

1

Solved

I'm an 18 years old trainee and I'm discovering scala which I like very much :-). To get familiar with the scala actors I wrote a small simulation with some gears and one controller. The ActorAppli...
Equities asked 4/2, 2010 at 10:6
1

© 2022 - 2024 — McMap. All rights reserved.