IntelliJ Java IDE
The moose likes Scala and the fly likes I failed to write : Good-looking assignment to private Array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Scala
Reply Bookmark "I failed to write : Good-looking assignment to private Array" Watch "I failed to write : Good-looking assignment to private Array" New topic
Author

I failed to write : Good-looking assignment to private Array

Heep Po
Greenhorn

Joined: Sep 03, 2011
Posts: 2


Thanks for suggestion
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 11642

Welcome to the Ranch.

Instead of this:

try this:

(I have not tested it, but I think that will work).

The _= is part of the method name. You should put it with the method name, not after the (i: Int) argument list.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Heep Po
Greenhorn

Joined: Sep 03, 2011
Posts: 2
Thanks to your response, Jesper de Jong, but your solution produces compiler error.

And I've got the solution at:
http://scala-forum.org/read.php?3,549,551#msg-551
 
 
subject: I failed to write : Good-looking assignment to private Array
 
Threads others viewed
losing data
Tail Calls vs memoization
Scala not compiling on Eclipse
Interface combinations ...
Project Euler problems with Scala
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture