Full Archive The high level overview of all the articles on the site.
Scalaã«ã¯ãPartialFunctionã¨ãããã®ãããã¾ãã ç´è¨³ããã¨é¨åé¢æ°ã§ãããããã¯ãªã«ãã£ã¦ããã¨ãç¹å®ã®å¼æ°ã«å¯¾ãã¦ã¯çµæãè¿ããã©ãçµæãè¿ããªãå¼æ°ããããããªä¸éå端ãªé¢æ°ãã§ãã ã©ããã£ã¦ä½¿ãã®ã? ã¾ããã¡ãã£ã¨ä¾ãè¦ã¦ã¾ãããããPartialFunctionã§ããfooPfã¯ãå¼æ°ã"foo"ã ã£ãã"bar"ãè¿ãã¦ã"foo"以å¤ã¯ç¥ããã¨ããã¦ãã¨ã¼ãªé¢æ°ã§ãã scala> val fooPf:PartialFunction[String,String] = { case "foo" => "bar" } fooPf: PartialFunction[String,String] = <function1> scala> fooPf("foo") res5: String = bar scala> fooPf("hoge") scala.Mat
Scalastyle examines your Scala code and indicates potential problems with it. If you have come across Checkstyle for Java, then youâll have a good idea what scalastyle is. Except that itâs for Scala obviously. Scalastyle is used as part of the grading framework for the course Functional Programming Principles in Scala by Martin Odersky on Coursera. How do I use scalastyle? The latest stable versio
Scala usingï¼ãã¼ã³ãã¿ã¼ã³ï¼ C#ã§ã¯ããªã¼ãã³ãããã¡ã¤ã«ã確å®ã«ã¯ãã¼ãºãã¦ãããusingã¨ããæ§æãããã ããã¨åããããªäºãScalaã§ãã£ã¦ã¿ãã ããã¹ããã¡ã¤ã«ãèªã¿è¾¼ãä¾ãèãã¦ã¿ãã Scalaã§ã¯Sourceã¯ã©ã¹ã使ããèªã¿çµãã£ããï¼ãããã¯éä¸ã§ã¨ã©ã¼ã«ãªã£ã¦ãï¼ã¯ãã¼ãºããã ãã®çºãtryãããã¯ã§å²ã¿ãfinallyã§close()ãå¼ã³åºãã val s = scala.io.Source.fromFile("C:/temp/a.txt") try { s.getLines.foreach{ println } } finally { s.close() }ãããã以ä¸ã®ãããªæãã§æ±ããããã«ããããï¼usingãããã¯ãæããã¨èªåçã«ã¯ãã¼ãºããï¼ using(s = scala.io.Source.fromFile("C:/temp
Philipp Haller, Aleksandar Prokopec, Heather Miller, Viktor Klang, Roland Kuhn, Vojin Jovanovic è Eugene Yokota 訳 æ¦è¦ Future ã¯ä¸¦åã«å®è¡ãããè¤æ°ã®æ¼ç®ãåãæ±ãã®ã«ä¾¿å©ãªæ¹æ³ãæä¾ãããããã¯å¹ççã§ãã³ããããã³ã°ãªæ¹æ³ã ã 大ã¾ããªèãæ¹ã¯ã·ã³ãã«ãªãã®ã§ãFuture ã¯ã¾ã åå¨ããªãè¨ç®çµæã«å¯¾ãããã¬ã¼ã¹ãã«ãã®ãããªãã®ã ã ä¸è¬çã«ãFuture ã®çµæã¯ä¸¦è¡ã«è¨ç®ããå¾ã§éè¨ãããã¨ãã§ããã ãã®ããã«ä¸¦è¡ãªã¿ã¹ã¯ãåæãããã¨ã§ãããéããéåæã§ããã³ããããã³ã°ãªä¸¦åã³ã¼ãã¨ãªããã¨ãå¤ãã ããã©ã«ãã§ã¯ãFuture ã Promise ããã³ããããã³ã°ã§ãããå ¸åçãªããããã³ã°æ¼ç®ã®ä»£ããã«ã³ã¼ã«ããã¯ã使ãã ã³ã¼ã«ããã¯ã®ä½¿ç¨ã
ã¯ããã« åãã¾ãã¦ã 2011å¹´åº¦å ¥ç¤¾ã®ã¤ã¡ã¯ãã¨ç³ãã¾ãã ã¢ã¡ã¼ãã®ã²ã¼ã é¨éã§ã¨ã³ã¸ãã¢ããã¦ãã¾ãã ä»åã¯ã¨ã³ã¸ãã¢ããã°ãæ¸ãæ©ä¼ãé ãã¾ããã®ã§ã大好ã㪠Scala ã«ã¤ãã¦æ¸ããã¦ããã ãã¾ããã ããã®ãããã¨ããã¨ããã©ããã®ãªã話ãããããããããã¼ããªã£ã¦ããã¾ããããäºæ¿ãã ããã¾ãã ã¨ããããã§ããããRuby ã¯ä½¿ã£ã¦ãã¦æ¥½ããã æ°æã¡ããããã¨èããã©ã Scala ã楽ãããæ°æã¡ãããã ãã¼ï¼ ã¨ããã®ãä¼ãããã§ããã ä¼ããã¨ããã§ããã (ãã®è¨äºã¯ç§ã Scala ã®æ¥½ããã¨æããé¨åã«çãçµã£ã¦æ¸ãã¦ãã¾ãã Scala ã«ã¯æ¥½ãããªãé¨åãããããããã¾ãããããã«é¢ãã¦ã¯ããã§ã¯è§¦ãã¾ããã Scala ããã¯ä¿ºã®å«) ããã£ã¨æ¸ãã¦ãããã¦ã¿ããã¨ãåºæ¥ãã® æ¬é¡ã«å ¥ãåã«ãã Ruby ã«ã¯ irb ã¨ããããã®å ´ã§ããã°ã©ã ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}