scala
PartialFunctionã¯ããã¹ã¦ã®å¤ã«ã¤ãã¦å®ç¾©ããã¦ããã¨ã¯éããªãé¢æ°ã示ãã¦ããFunction1ã®ç¹æ®ãªã±ã¼ã¹ã val pf:PartialFunction[Int,String] = { case i if i>1000 => "Big" } PartialFunctionãã®ãã®ã®è©±ã¯ã¨ããããç½®ãã¨ãã¦ãScalaã£ã¦ãããªâ¦
Scalaz (Scar-lah-zed) is a library written in the Scala Programming Language. One mandate of the library is to depend only on the core Scala API and the core Java 2 Standard Edition API. The intention of Scalaz is to include general functiâ¦
ããããã¨ãã¾ããããªãã¦è¦å´ããã®ã§(2009/11/30ç¾å¨)ãã¡ã¢ã¨ãã¦æ®ãã¾ãã ã¾ããJDKã¯ã¤ã³ã¹ãã¼ã«ãã¦ããã¦ãã ããã ããºã¬ãã¦ã³ãã¼ãã¯ãã¡ã http://www.jetbrains.com/idea/nextversion/free_java_ide.html?promo ãã¼ã¸ã§ã³ãå¤ã ãããâ¦
Scalaã®å¼·åãªæ§æã®ã²ã¨ã¤ã matchãcaseã«ãããã¿ã¼ã³ãããã³ã°ã§ãããæ£è¦è¡¨ç¾ã«ã使ããã¨ãã§ãã¾ãã scala> val a = """Regexp here, (\w+) and (\w+)""".r a: scala.util.matching.Regex = Regexp here, (\w+) and (\w+) scala> "Regexp here, hoâ¦
Liftã® CRUDify ã¯ã³ã¼ãã£ã³ã°ãã»ã¨ãã©ããã«ãCRUDæ©è½ãæä¾ãã¦ããããã¨ã¦ã便å©ãªæ©æ§ã§ããRuby On Rails(/AR)ã®scaffoldã¿ãããªãã§ãOracleãRDBMSã¨ãã¦ããã¨ãã«ãCRUDifyã®"List"æ©è½ãã¾ã£ããåãã¦ãããªããã¨æã£ã¦åè¦å «è¦ãã¦ããã®â¦
ååã® "ãªãã§2ånewããã¦ãã®?" ã«ã¤ãã¦ã¯ id:kmizushima ããã id:SiroKuro ããã @kinaba ããã¨ãã£ãèè ã®çãããæ³å®å¤ã®åä½ã ã£ãããã§ãéã³ã³ãã¤ã«(éã¢ã»ã³ãã«)ããã¨ããå½¢ã§èª¿æ»ãããã¦ããã¾ããããªãã»ã©ããããã£ã¦è¿½è·¡ããã°â¦
Rubyã®ç¹ç°ã¡ã½ãã/ç¹ç°ã¯ã©ã¹ã¿ãããªãã¨ãåºæ¥ãªãã®ããã¨æã£ã¦èª¿ã¹ã¦ããã¨ãããåæ段éã¨ãã¦ãæ¢åã®ã¯ã©ã¹ãæ¡å¼µã§ããããã¨ããç¹ãæã£ã¦ã¿ããã¨ã«ãªãã¾ãããScalaã¯ãã¨ãã¨ãRichStringã¨ããã¯ã©ã¹ããããjava.lang.Stringã¯ã©ã¹ã«åâ¦
Liftã® Locå®è£ ãè¦ã¦ãã¦æ°ãã¤ããã scala> trait Hoge { | def fuga:String; | def piyo:String = fuga | } defined trait Hoge scala> val a = new Hoge { | def fuga = "abc" | } a: java.lang.Object with Hoge = $anon$1@1f2a9da scala> val b = newâ¦
ã§ããã®å¾ãããã試ãã¦ãå ¨ç¶ãã¾ããããªãã¦ããããããã ããªãå ±éã®è¦ªãªãç¸äºã«ä»£å ¥ã§ããã¨ããªããã¼ã¨æã£ã¦ããµã³ãã«ã³ã¼ããã¨ããããå ¥åãã¦ã¿ããã³ã³ãã¤ã«ã¨ã©ã¼ãªãããããããProductã¨ãå ¨ç¶é¢ä¿ãªãã£ãã§ã ï¼¼(^o^)ï¼ ï½µï¾ï¾
Liftã®ãã¡ã¤ã«ã¢ãããã¼ãã®ãµã³ãã«ã³ã¼ã㧠var fileHolder : Box[FileParamHolder] = Empty (ç¥) bind(... "receipt" -> SHtml.fileUpload(fileHolder = _),ã¨ããé¨åããããSHtml.fileUpload()ã®ä»æ§ãè¦ãã¨ãå¼æ°å㯠FileParamHolder => Any ã¨ãâ¦