This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package listimpl | |
| import org.specs2.mutable.SpecificationWithJUnit | |
| import org.specs2.specification.Scope | |
| class LinkedListTest extends SpecificationWithJUnit { | |
| "LinkedList" should { | |
| "have elements" in new Test { | |
| xs.size === 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scala 2.9 | |
| keywords (39): | |
| abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try true type val var while with yield | |
| symbols (12): | |
| _ : = => <- <: <% >: # @ | |
| ⇒ (Unicode \u21D2) same as: => | |
| ← (Unicode \u2190) same as: <- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import akka.actor.Actor | |
| import akka.actor.Actor.actorOf | |
| object HelloWorld extends App { | |
| val a = actorOf[Hello] | |
| a.start() | |
| val resp = (a !! World) getOrElse sys.error("no response") | |
| a.stop() | |
| println(resp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object HelloWorld extends App { | |
| val msg = new Hello with World | |
| msg.show | |
| } | |
| trait Message { | |
| def get: String | |
| } | |
| trait World extends Message { |
NewerOlder