PartialFunctionã®ã¨ã¤ãªã¢ã¹ãä½ã£ã¦è¦èªæ§up...ããªããããããªã
PartialFunctionã¯ããã¹ã¦ã®å¤ã«ã¤ãã¦å®ç¾©ããã¦ããã¨ã¯éããªãé¢æ°ã示ãã¦ããFunction1ã®ç¹æ®ãªã±ã¼ã¹ã
val pf:PartialFunction[Int,String] = { case i if i>1000 => "Big" }
PartialFunctionãã®ãã®ã®è©±ã¯ã¨ããããç½®ãã¨ãã¦ãScalaã£ã¦ãããªæ¸ãæ¹ãåºæ¥ããåãã©ã¡ã¼ã¿ã2ã¤ã¨ãåã«ã¤ãã¦ã¯ä¸ç½®ã®ããã«ã§ããã
val pf:Int PartialFunction String = { case i if.... }
ã§ããããªãã ãããããããªããã§ã Int => String ã®ããã«æ¸ãããã®ã§ã
type ~>[A,B] = PartialFunction[A,B] val pf:Int ~> String = { case i if ... }
ã¨ãã¨ã¤ãªã¢ã¹ãå®ç¾©ãã¦ããã¨ãªãã ãè¦èªæ§ãUP!ã»ã»ã»ããï¼
ã¾ããããªæ¸ãæ¹ãåºæ¥ãScalaã®ç´ æµä»æ§ (