스칼라 패턴 매칭에 사용되는 일반적인 기호는 오른쪽 화살표, ⇒ 또는 =>입니다. 그래서 내 질문은 ⇒ 오른쪽 화살표를보고 깔끔하게 입력하는 바로 가기가 무엇입니까? Mac OS에서 IntelliJ를 사용합니다.IntelliJ Mac OS에서 오른쪽 화살표 (예 : ⇒, not =>)를 입력하는 방법은 무엇입니까?
아래이 기호를 사용 https://doc.akka.io/docs/akka/current/guide/tutorial_1.html
package com.lightbend.akka.sample
import akka.actor.{ Actor, Props, ActorSystem }
import scala.io.StdIn
class PrintMyActorRefActor extends Actor {
override def receive: Receive = {
case "printit" ⇒
val secondRef = context.actorOf(Props.empty, "second-actor")
println(s"Second: $secondRef")
}
}
object ActorHierarchyExperiments extends App {
val system = ActorSystem("testSystem")
val firstRef = system.actorOf(Props[PrintMyActorRefActor], "first-actor")
println(s"First: $firstRef")
firstRef ! "printit"
println(">>> Press ENTER to exit <<<")
try StdIn.readLine()
finally system.terminate()
}