ãªã¯ã¨ã¹ãäºç´å¸ææ¡ä»¶ããåºã«ç³ãè¾¼ã¿ããåºããã®ç¢ºå®ã®é£çµ¡ããã£ã¦ãäºç´ãæç«ãã¾ãã 1 äºç´ã®ç³ã込㿠ãå¸æã®æ¡ä»¶ãå½ãµã¤ããããå ¥åãã ããã 2 ãåºããã®ã¡ã¼ã« ãäºç´ãæ¿ãããããåºããã®è¿ä¿¡ã¡ã¼ã«ãå±ãã¾ãã 3 ãåºã¸æ¥åº äºç´ã確å®ããå ´åããã®ã¾ã¾ãåºã¸ãè¶ããã ããã
ãç·¨éé¨æ³¨â»éåºãã¾ããã é·å´ã¡ããã½ãèªçã®æ´å²ã¯ãææ²»30年代ããè ¹ã空ãããä¸å½äººçå¦çã«æ é¤ãã¤ããã®ãé£ã¹ããããã¨ãéèããã£ã·ã使ã£ã¦ãä¸è¯éººãå ¥ããã¹ã¼ãã§ç ®è¾¼ãã ã®ãã¯ãã¾ããç¦å²¡ã«ã大å¦çã«ä¸¦ã®å¤æ®µã§ãã¯ãã®å¤§çããé£ã¹ããã¦ãããã¡ã«ã巨大åãã¦ãã¾ã£ã人æ°ã«ã¬ã¼ã©ã¤ã¹ãããã¾ãã å ã ã¯ç¦å²¡å¸å ã®ä¹å·å¤§å¦å æ¬æ¾ãã£ã³ãã¹ã®è¿ãã§ã«ã¬ã¼åºããªã¼ãã³ãç¾å¨ã¯ãåå¸å ã®ç¦å²¡æ¯ç§å¤§è¿ãã«ç§»è»¢ãã¦ãä¹å·å¤§å¦OBããè¿é£ã®ä½æ°ã¾ã§å¤ãã®ãã¡ã³ã«æããã¦ãããã«ã¬ã¼ã·ã§ããæ²³ï¼ããï¼ããæ²³ã®ãã«ã¬ã¼å±±çã700åãåããã§ãã£ï¼ ãåºã¯ãç¦å²¡å¸æ©è¯åºç°éã¨ããå ´æã«ãªãã¾ããä¹å·å¤§å¦ãéå¤ã®ãã£ã³ãã¹ã«ç§»è»¢ãããã¨ã«ãªããå¦çãããªããªããã¨ããã2009å¹´ã«åãç¦å²¡å¸å ã®ç¦å²¡æ¯ç§å¤§ã®è¿ãã«ç§»è»¢ããã¨ããé¢ãæ¥ãç¹°ãåºãã¾ããã移転æã®åºä¸»ã¯60æ³ãããæã§ãã åºå ã¯æ´é£åºã
ãªã¯ã¨ã¹ãäºç´å¸ææ¡ä»¶ããåºã«ç³ãè¾¼ã¿ããåºããã®ç¢ºå®ã®é£çµ¡ããã£ã¦ãäºç´ãæç«ãã¾ãã 1 äºç´ã®ç³ã込㿠ãå¸æã®æ¡ä»¶ãå½ãµã¤ããããå ¥åãã ããã 2 ãåºããã®ã¡ã¼ã« ãäºç´ãæ¿ãããããåºããã®è¿ä¿¡ã¡ã¼ã«ãå±ãã¾ãã 3 ãåºã¸æ¥åº äºç´ã確å®ããå ´åããã®ã¾ã¾ãåºã¸ãè¶ããã ããã
åæ稿ã®@sunflatã§ãã好ããªããã°ã©ãã³ã°è¨èªã¯ MSX-BASIC ã§ãã Rails 4.1ã§ActiveRecordã«è¿½å ããã enum ã«ã¤ãã¦ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ããã æ¬å½ã¯ãMisocaã®éçºã§enumã使ã£ã¦ãã®å®ä¾ãç´¹ä»ããäºå®ã ã£ãã®ã§ãããå¾è¿°ããçç±ã«ããä»åã¯é©ãã¦ããªãã£ãã®ã§ä½¿ãã¾ããã§ããã ããã§ä»åã¯ã(æ ª)Misocaã®è¿ãã«ãããã ã¬ã«ãã¬ã¹ãã¨ããã¤ã³ãã«ã¬ã¼å±ããã®ãã©ã³ãã»ããã®ã¡ãã¥ã¼ãä¾ã«ãenumã使ãæã«æ°ãã¤ããããã¤ã³ããããã¤ãç´¹ä»ãã¾ãã enum ã®ä½¿ãæ¹ ActiveRecordã® enum ã使ãã¨ãããã°ã©ã ããã¯æååï¼ååï¼ã§ã¢ã¯ã»ã¹ã§ããDBã«ã¯æ´æ°å¤ã§ä¿åãããå±æ§ãä½æã§ãã¾ãã ãã£ããã©ã³ãã»ããã®ã¢ãã«ãä½æãã¾ããããã«ã¬ã¼ã®ç¨®é¡ã¨ãã¦ãããã³ããã¼ã¯ãéèãè± ãé¸æã§ããã¨ãã¾ããenum
ããã¹ãããã§ã¯ãã¡ããã®ä¸ã«äººæ°ã®æ£èãã¤ããâã¡ãã天âã·ãªã¼ãºããæ°ååãã¡ãã天ï¼ã«ã¬ã¼ï¼ãã6æ12æ¥ããé 次æ°è²©å£²ãã¾ããä¾¡æ ¼ã¯170åã ã¡ãã天ã®ä¸ã«å ¥ã£ã¦ããã®ã¯æãææã«äººæ°ã®ã«ã¬ã¼ãå¹ åºã年齢層ãé£ã¹ããããããªå°ãçãã®å³ããã®ã«ã¬ã¼ã«ãã¢ã¯ã»ã³ãã¨ãã¦ç¦ç¥æ¼¬ããå ¥ã£ã¦ãã¾ãã ã¡ãã天ã¯æ³¨æãå ¥ã£ã¦ããåºå ã§æãã¦æçµå å·¥ãè¡ãã®ã§ãé¦ã°ããã«ã¬ã¼ã®é¢¨å³ã¨ãµã¯ãµã¯ã¨ããè¡£ã®é£æã楽ããã¾ãã ã¡ãã天ã¯ä»å¹´1æã«æ°ç»å ´ãã¦ä»¥å¾ãç¬ãéã«ããã¹ãããã®äººæ°ãããã¹ããã¯ã¨ãªã£ãã·ãªã¼ãºãä»åã®ãã¡ãã天ï¼ã«ã¬ã¼ï¼ãã¯ãã·ãªã¼ãºåã¨ãªãããããµã©ã以å¤ãã¤ã¾ã£ãååã¨ãããã¨ã§æå¾ ãé«ã¾ãã¾ããã ã«ã¬ã¼å³ã«ç¦ç¥æ¼¬ãã®æ¯ããããåããã£ã¦ããã¼ã«ãã©ãã©ãã¨é²ãã§ãã¾ããããªã³ã³ããã¡ãã¥ã¼ã§ãããã ãã¡ãã天ï¼ã«ã¬ã¼ï¼ã ã»170å ã»6æ12æ¥ããé 次販売ã6æ
ãªã¯ã¨ã¹ãäºç´å¸ææ¡ä»¶ããåºã«ç³ãè¾¼ã¿ããåºããã®ç¢ºå®ã®é£çµ¡ããã£ã¦ãäºç´ãæç«ãã¾ãã 1 äºç´ã®ç³ã込㿠ãå¸æã®æ¡ä»¶ãå½ãµã¤ããããå ¥åãã ããã 2 ãåºããã®ã¡ã¼ã« ãäºç´ãæ¿ãããããåºããã®è¿ä¿¡ã¡ã¼ã«ãå±ãã¾ãã 3 ãåºã¸æ¥åº äºç´ã確å®ããå ´åããã®ã¾ã¾ãåºã¸ãè¶ããã ããã
1æ¥ç® å¤ ãã³ãã¼ã° ãã¬ãã¢ã ã¢ã«ã 2æ¥ç® æ ã±ãã æ¼ ã¤ã麺 å¤ id:r7kamura ããã¨yoyogi.pyã«è¡ã£ãã å®å ¨é£ã«ã¬ã¼ éèãé£ã¹ãã«ã¬ã¼camp ã¤ãµã¤ã²ã¿ãã«ã«ã¬ã¼ ãã£ã³ã - 代ã æ¨/ã«ã¬ã¼ã©ã¤ã¹ [é£ã¹ãã°] 3æ¥ç® æ ç¡ã æ¼ ã±ãã ç¾½ã¤ãããç¼ã å¤ ã«ã¬ã¼ãããã³ ãã¼ã« 竹鶴12å¹´ æµ èã§1人ã«ã¬ã¼é£ã¹ã¦ããã常é£ã®ããã¤ã°å±ã®ãã°ã¡ãããé 奢ã£ã¦ããã¦éåºã¾ã§ãã¹ã¿ã¼ã¨åã£ãããã¦ãã 4æ¥ç® æ æºé¡å æ¬åº ã¾ãããã©ã - æµ è/åèå [é£ã¹ãã°] ãããã1åãã¤ã¶ãããã1å æ¼ ã¹ãã¼ãå®é£ å¤ ä¸éãã id:blankblank ã®å®¶ã«éã³ã«è¡ã£ããã¨ããã¼ã¬ã¼ããã¢ã§åæµãã id:r7kamura ããã®å®¶ã«ãè¡ã£ãã ãã¼ã¬ã¼ãã㢠ãã³ãã¼ã¬ã¼ã1550åãããã©ããããã£ãã éä¸ã«èã®ããããµããã£ã¦è奮
curry -> Proc[permalink][rdoc] curry(arity) -> Proc Procãã«ãªã¼åãã¾ã ã«ãªã¼åããProcã¯ããã¤ãã®å¼æ°ãã¨ãã¾ããååãªæ°ã®å¼æ°ãä¸ããããã¨ãå ã®Procã«å¼æ°ã渡ã ã¦å®è¡ããçµæãè¿ãã¾ããå¼æ°ã®åæ°ã足ããªãã¨ãã¯ãé¨åé©ç¨ããã«ãªã¼åProcãè¿ãã¾ãã [PARAM] arity: å¼æ°ã®åæ°ãæå®ãã¾ã [RETURN] ã«ãªã¼åããProcãªãã¸ã§ã¯ããè¿ãã¾ã b = proc {|x, y, z| (x||0) + (y||0) + (z||0) } p b.curry[1][2][3] #=> 6 p b.curry[1, 2][3, 4] #=> 6 p b.curry(5)[1][2][3][4][5] #=> 6 p b.curry(5)[1, 2][3, 4][5] #=> 6 p b.curry
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}