問題タブ [partial-functions]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
scala - Scala の PartialFunction
PartialFunction
Scalaのソースコードを見ています。このファイルでは、特性PartialFunction
とコンパニオン オブジェクトPartialFunction
が定義されています。コンパニオン オブジェクトにはメソッドcond
とがありcondOpt
ます。
リンク: https://github.com/otiym23/scala/blob/master/src/library/scala/PartialFunction.scala
andThen
関数も調べるorElse
と、以下のメソッド呼び出しが存在します。
これらの関数 (isDefinedAt / apply) がどこにあるのかわかりません。
これらの2つの方法が存在する場所を誰かが助けてくれますか?
ありがとう!