2011-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ããªããç¨ Haskell golf ã®æç§æ¸ãèªãã§ã俺ãããããã®æ¸ãããï¼ãã¨æã£ã¦æ¸ãã¦ã¿ãï¼(æã£ã¦ããæ¸ãã¾ã§ã«1å¹´ãããçµã£ã¦ããã©) ã¢ããã¥ã¢ã´ã«ãã¡ã¼ãªã®ã§è³ãã¬æãããããã ãã©ï¼ä»å¾ã®Schemeçã¨ããªããçã®çãä¸ãããé¡ã£ã¦ãã®æç« â¦
æåï¼ç¡åé¢æ°ã§æ¸ããã¨ãããï¼ã©ãããã°å¤ç¸çã«ãªã£ã¦ãããã®ãããããªãã¦ï¼ããã£ã¦ããååãä»ããã°ããã¨ãããã¨ã ã£ãï¼ ã¨ãããï¼ scala> def id[T](x: T) = x id: [T](x: T)T scala> id _ res0: Nothing => Nothing = <function1> scala> (id _)(42) <console></console></function1>â¦