åèå¸ã§ã¯ãæ©éä¸ã®æ©è¡è ã®å®å ¨ãå³ãã¨ã¨ãã«ãèªè»¢è»ã¯è»éãéè¡ãããã¨ãååã§ãããããèªè»¢è»ãå®å ¨ã§å¿«é©ã«è»éãéè¡ã§ãããããèªè»¢è»èµ°è¡ç°å¢ãåµåºãããã¨ã«ãããèªè»¢è»ã®å©ç¨ä¿é²ãå³ãããèªè»¢è»ã®è¡ï¼åèå¸ããç®æãã¦ã¾ããã¾ãã 1ãèªè»¢è»èµ°ããããããã èªè»¢è»èµ°ãããããããã使ãã¾ããã èªè»¢è»èµ°ãããããããã¯ãå¹³æ22年度ããå¹³æ24年度ã«ããã¦å¸æ°ãã©ã³ãã£ã¢ã®æ¹ã ã®ãååãå¾ã¦å®èµ°èª¿æ»ã宿½ããçµæãã¾ã¨ãããã®ã§ããã¿ãªãã¾ãèªè»¢è»ã®èµ°è¡çµè·¯ã鏿ããéã®åèã¨ãã¦ãæ´»ç¨ä¸ããã ãªãããããã«æ²è¼ãã¦ããå 容ã¯èª¿æ»æç¹ï¼å¹³æï¼ï¼ï½ï¼ï¼å¹´åº¦ï¼ã®ãã®ã¨ãªã£ã¦ããã¾ãã®ã§ãæ²è¼å 容ã夿´ã«ãªã£ã¦ããå ´åãããã¾ãã åèå¸èªè»¢è»èµ°ãããããããï¼å¹³æ25å¹´3æçï¼ è¡¨é¢ï¼PDFï¼6,231KBï¼ãæ²è¼ç¯å²ï¼å¸å å ¨åï¼ãã ããè¥èåºãç·åºã®ä¸é¨ã¯è£é¢ã«è¨è¼ï¼ è£é¢ï¼P
use strict; use warnings; use feature qw(say); use List::Util qw(first reduce); sub custom1(&) { shift->(); } sub custom2(&@) { shift->(); } sub test_grep { my @a = (1); @a = grep { return 'from inside grep' } @a; return 'from outside grep'; } sub test_map { my @a = (1); @a = map { return 'from inside map' } @a; return 'from outside map'; } sub test_eval { eval { return 'from inside eval' }; retur
常ç¿çãªè¿·æéæ³é§è» æ ¢æ§çãªé¨é³çºçå°ç¹ ç¹°ãè¿ãããã´ããç èã®ãã¤æ¨ã¦å°ç¹ 常ç¿çãªç¬ã®ç³ã®ä¸å§æ«ãªã©ãããå°ç¹ ãã®ä»è¿·æè¡çºãç¹°ãè¿ãããå°ç¹ è§£æ±ºå ±åã®ãã£ãå°ç¹ã§ã 管çè ããã®ãç¥ããã§ã â»ç»é²ãæ´æ°ããæ¥æ°ãçµã¤ã¨ã¢ã¤ã³ã³ã®è²ãã°ã¬ã¼ã«ãªã£ã¦ããã¾ã â»æ´æ°ãããå ´åãçµéæ¥æ°ã¯ãªã»ããããã¾ã
æ°å®¿é§ å¨è¾ºãã徿©ã§ã®5åã»10åã»15ååï¼ç»åæä¾ï¼@ShinagawaJPããï¼ æç¨¿ããã«ããããã°ï¼@ShinagawaJPï¼ããã«ããã¨ãéè·¯ã®éã®ããå¶éé度ããæè¦æéãè¨ç®ããç¯å²ã¨ãªã£ã¦ãããããåå¿åç¶ã«ã¯ãªãããéè·¯ã«æ²¿ã£ã¦çæéç·ã伸ã³ã¦ããã¨ã®ãã¨ããã®ãããç¹ã«å·ãå±±ãè¿ãã«ããå ´åã«ã¯ãããã¦ãã¼ã¯ãªå½¢ã®ç·ãå½¢æãããããã§ããå ´æã«ãã£ã¦å¤ããã®ãè¦ã¦ãã¦é¢ç½ãï¼ ã¡ãªã¿ã«å¾æ©ï¼ç·ã®è²ãéï¼ã¨èªè»¢è»ï¼ç·ã®è²ãç·ï¼ãã¡ã¤ã³ã§ãè»ã¯ãæ¸æ»èæ ®ã§ãã¦ããªãã®ã§è¶ åèãç¨åº¦ã¨ãã¦ãã¾ãã
ãªã³ã¯ ãã³ãã³å¤§ç¾ç§ ã¨ã³ãªã³ã»ãããã¨ã¯ (ã¨ã³ãªã³ãããã¨ã¯) [åèªè¨äº] - ãã³ãã³å¤§ç¾ç§ ã¨ã³ãªã³ã»ãããã¨ã¯ã漫ç»ãã¸ã§ã¸ã§ã®å¥å¦ãªåéºã第6é¨ãã¹ãã¼ã³ãªã¼ã·ã£ã³ãã®ç»å ´äººç©ã ãè½ã¡çããã â¦ãç´ æ°ããæ°ãã¦è½ã¡ã¤ããã â¦ã ãåã¯ãå¼åããä¿¡ãããï¼äººã¨äººã®éã«...
JapanEx å¶çã¬ãã«ãæ¥æ¬å ¨å½å¶è¦ãç®æãï¼
ããã¯ãã£ããâ¦Googleãããã®è¡æåçã«ä¸è²ã®é£è¡ç©ä½ãåããã Googleãããã®è¡æåçã«ãå¥å¦ãªä¸è²ã®é£è¡æ©ãåã£ã¦ããããã§ãã å ´æã¯ã¢ã¡ãªã«ã»ã·ã«ã´ã®éå¤ã ã©ããªãã¨ã«ãªã£ã¦ããã®ããæ¡å¤§åçãã覧ãã ããã ãã®æ®µéã§ã¯ã¾ã ã©ãããããã¥ããã¨æãã¾ããâ¦ã ã ãã ãé£è¡æ©ããããã®ãã 確ãã«è¹ã®ãããªè²åãã ããã¯â¦ã é£è¡æ©ã®è¼ªéã¨ãRGBã®æ®åã¨ãã£ãæãã§ãã ããããé«éã§åãã¦ããããããããªåçãã¤ãã«ãªã£ã¦ãã¾ã£ãã¨æãã¾ãããGoogleãããã§è¦ã¤ãããä½ã ããï¼ï¼ã¨é©ãã®ãç¡çãªãã§ãããã å®éã®Googleãããã§ã®ç»åã¯ä»¥ä¸ããã覧ãã ããã 大ããªå°å³ã§è¦ã Look. It's a bird, it's a... Rainbow Plane? ä¸çåï¼éæ³ã®ã«ã©ãã«ã°ã¶ãâã¶ãã«ã¹ããã¼ãç-Zubbles-ï¼ç´120mlãã³ã¯ï¼
Googleãããã®è¦ãç®ãå¤ãã£ã¦ãããå°å³ã®å³ä¸ã«ããã³ãã¼ã©ã¤ã表è¨ã«ãã£ãZENRINã®æåãæ¶ãããå°å³ãã¼ã¿Â©2019 Googleãã¨ãªã£ã¦ãããããã¾ã§æ¡ç¨ãã¦ããå½å 大æã®å°å³ã¡ã¼ã«ã¼ã»ã¼ã³ãªã³ã®å°å³ãã¼ã¿ãããGoogleãèªåã§ç¨æããå°å³ãã¼ã¿ã«å¤æ´ããå¯è½æ§ãé«ãã Googleã¯6æ¥ãGoogleãããã®æ¥æ¬åãå°å³ã䏿°ããã¨çºè¡¨ãããåããããã徿©ããã²ã¼ã·ã§ã³ã乿æ¡å ãå°å³ã®ãã¦ã³ãã¼ããå¯è½ã«ãªãã¨ãã¦ãããä»åã®å¤æ´ã¯ãã®ä¸ç°ã¨ã¿ããããæ°æ©è½ã¨ãã¦æä¾ããããªãã©ã¤ã³ããããã¯ãå°å³ãäºåã«ãã¦ã³ãã¼ããã¦ãªãã©ã¤ã³ç°å¢ã§ãè¦ãããããã«ãããã®ã ããæ¥æ¬ã§ã¯ããã¾ã§ãå¥ç´ä¸ã®å¶éãã¨ãã¦æä¾ãã¦ããªãã£ãã ã¼ã³ãªã³ã¯Googleãããã®ãµã¼ãã¹éå§å½åï¼2005å¹´ï¼ããå°å³ãã¼ã¿ãGoogleã«æä¾ããªãã©ã¤ã³ããããã¤ãã«æ¥æ¬ã§å®è£ ãããã¨
Googleãã¤ããããæç¨ãã¦ãããå°å³ä¸ã«ç·ãå¼ãããããã³ãç«ã¦ããã§ãããµã¼ãã¹ã ã ãããã£ã¦ç«ã¦ããã³ãå¼ããç·ããç¾å®ã®æ¯è²ã«éãªã£ã¦è¦ãããé¢ç½ãããããªãããã¨ãµã¨æã£ãã ããããã¢ããªãä½ã£ã¦ã¿ã¾ããã
é åãmapã¨ãfilterãããã§ããã ã¯ã Map颿°ã¨Filter颿°ã§ã é åã飿³é åãSafeArrayã«å¯¾å¿ãã¦ãã¾ã å¥åã§Selectã¨Whereãç¨æãã¾ãã æåã®å¼æ°ã«é åãæ¸¡ãã¦ã2ã¤ç®ã®å¼æ°ã«å¼ãæååã§æ¸¡ãã¾ã å¼ã®ä¸ã§ã¯å¤æ° % ãåè¦ç´ ã®å¤ã«ãªãã¾ãã 飿³é åã§ã¯ & ããã¼ã«ãªãã¾ã Mapã«æ¸¡ãå¼ã¯ä»£å ¥å¼ã§ã¯ãªããæ°ããå¤ãè¿ãæãã§ãé¡ããã¾ã Filterã«æ¸¡ãå¼ã¯boolãè¿ãããã«ãã¦ãããããªãã°ãã®ã¾ã¾éã varãã¦ãã®ã§å ã®é åããã£ããå¤ãã¦ãã¾ãã®ã«ã¯æ³¨æ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review
ããã·ã¥ãªãã¸ã§ã¯ãã¯ç¯å²ãªãã¸ã§ã¯ããé åãªãã¸ã§ã¯ãã¨åããè¤æ°ã®è¦ç´ ãæã¤ãªãã¸ã§ã¯ãã§ããç¹°ãè¿ãå¦çã使ããã¨ã§ããã·ã¥ãªãã¸ã§ã¯ãããé ã«è¦ç´ ãåå¾ãã¦å¦çãè¡ããã¨ãã§ãã¾ããããã§ã¯ Ruby ã§ããã·ã¥ãªãã¸ã§ã¯ãã«å¯¾ãã¦ç¹°ãè¿ãå¦çãè¡ãæ¹æ³ã解説ãã¾ãã
collect -> Enumerator[permalink][rdoc][edit] map -> Enumerator collect {|item| ... } -> [object] map {|item| ... } -> [object] åè¦ç´ ã«å¯¾ãã¦ãããã¯ãè©ä¾¡ããçµæãå ¨ã¦å«ãé åãè¿ãã¾ãã ãããã¯ãçç¥ããå ´å㯠Enumerator ãè¿ãã¾ãã ä¾ # ãã¹ã¦ 3 åã«ããé åãè¿ã p (1..3).map {|n| n * 3 } # => [3, 6, 9] p (1..3).collect { "cat" } # => ["cat", "cat", "cat"] [SEE_ALSO] Hash#to_h, Array#collect, Array#map
keys -> [object][permalink][rdoc][edit] å ¨ãã¼ã®é åãè¿ãã¾ãã ä¾ h1 = { "a" => 100, 2 => ["some"], :c => "c" } p h1.keys #=> ["a", 2, :c] [SEE_ALSO] Hash#values,Hash#to_a
merge(*others) -> Hash[permalink][rdoc][edit] merge(*others) {|key, self_val, other_val| ... } -> Hash selfã¨othersã®ããã·ã¥ã®å 容ãé çªã«ãã¼ã¸(çµ±å)ããçµæãè¿ãã¾ããããã©ã«ãå¤ã¯selfã®è¨å®ã®ã¾ã¾ã§ãã self 㨠others ã«åããã¼ããã£ãå ´åã¯ãããã¯ä»ããå¦ãã§å¤å®æ¹æ³ãéãã¾ãããããã¯ä»ãã®ã¨ãã¯ãããã¯ãå¼ã³åºãã¦ãã®è¿ãå¤ãéè¤ãã¼ã«å¯¾å¿ããå¤ã«ãã¾ãããããã¯ä»ãã§ãªãå ´åã¯å¸¸ã« others ã®å¤ã使ãã¾ãã othersãããã·ã¥ã§ã¯ãªãå ´åãothersã®ã¡ã½ããto_hashã使ã£ã¦æé»ã®å¤æã試ã¿ã¾ãã [PARAM] others: ãã¼ã¸ç¨ã®ããã·ã¥ã¾ãã¯ã¡ã½ãã to_hash ã§ããã·ã¥ã«å¤æã§ãããªãã¸ã§ã¯ãã§ãã [RET
å¤ä¸ã«8/15é ã®ãã¤ã¼ããåã£ã¦ããã Java 8u60 adds reflection on lambda param names DSLs https://t.co/cflxFK468e Hash-Literals https://t.co/5rOCrrckcB pic.twitter.com/NEzj4X3Bt1â Benjamin Weber (@benjiweber) 2015, 8æ 16 æ°ã Java8u60ã§ã©ã ãã®ãã©ã¡ã¼ã¿ã¼ã®ååã«å¯¾ãã¦ãªãã¬ã¯ã·ã§ã³ãã§ããããã«ãªã£ã¦ãã ã¨ããããã§ æ©éãä»¶ã®ãã¤ã¼ãã«ãã£ãã¬ãã¸ããªã¼ããã¦ã³ãã¼ããã¦(mavenã¬ãã¸ããªã¼ã«ã¯ãªãâ¦(´ã»Ïã»ï½))ãããã¸ã§ã¯ãã«è¿½å ãã¦ã試ãã¦ã¿ãã ã³ã¼ã import com.benjiweber.typeref.NamedValue; import java.util.Col
Google Mapã®ã¹ããªã¼ããã¥ã¼ã®ç§»åãã¿ã³ããèªåçã«ã¯ãªãã¯ãã¦ããã¦ã ä½ãããªãã¦ãç®çå°ã¾ã§ã®ã¹ããªã¼ããã¥ã¼ã楽ããããµã¼ãã¹ãè¦ä»ãã¾ããã ãæäººãã©ãã©ã¼ãã¨ãããµã¼ãã¹ã§ãã åè¿°ã®èª¬æã®ã¨ãããã³ã¼ã¹ã決ãã㨠ã¹ããªã¼ããã¥ã¼ãèªåçã«ç§»åãã¦ãã©ãã«æ°åãæ¥½ããã¾ãã æµ·å¤ãªã©ã®ããã¤ãããããã®ã³ã¼ã¹ãããããã§ããã èªåã®è¡ãããå ´æã®éè·¯ã¨ããæ ãã¦ã¿ãã®ãé¢ç½ãã¨æãã¾ãã ãã³ã¼ã¹ãã¤ãããã® ãï¼ï¼ã¹ã¿ã¼ãå°ç¹ã決ãããã§ä½ç½®ã鏿ãã ãï¼ï¼ã´ã¼ã«å°ç¹ã決ãããã§åæ§ã«ä½ç½®ã鏿ãã¦ãã ãã¨ã¯ãæ è¡ã«è¡ããã鏿ããã°ã ã¹ããªã¼ããã¥ã¼ãèµ·åããã¦èªåçã«æ ãå§ã¾ãã¾ãã ç»é¢ä¸é¨ã®ç½ãã¨ãªã¢ã«ãã¦ã¹ãå½ã¦ãã¨ãç§»åããé度ã調æ´åºæ¥ããã Shoutcastãããããã©ã¸ãªãè´ãäºãå¯è½ãªããã§ãã ãã ãããã¤ãã®ã«ã¼ãã試ãã¦ã¿ãæ
æ¡ä»¶ãå¤ãããä»äºã§ä½¿ãè¨èªãJavaããC#ã«å¤ããã¾ããã ãã®éã«ãC#ã§ããã°ã©ã ãæ¸ãã¦ãã¦å¼ã£ããã£ãã¨ãããã¡ã¢ãã¦ããã¾ãã ã¨ããããã飿³é å(Dictionary)ã使ã£ãã¨ãã®ãã¨ãã¡ã¢ã æ¸ãæ¹ã®éã C#ã¯ã飿³é åç¨ã«è¨èªä»æ§ãç¨æããã¦ãã¾ã(ã¤ã³ãã¯ãµâ)ã /* -- Java -- */ String str = map.get("abc"); /* -- C# -- */ string str = dictionary["abc"]; æåã«æ¸ããéããã®ãã¨ãå¿ãã¦åå¾ã¡ã½ãããæ¢ãã¦ãã¾ãã¾ããã»ã»ã»*1ã æåã®éã è¦ç´ ãç»é²ããéã«ããã§ã«åããã¼ãæã¤è¦ç´ ãç»é²ããã¦ããå ´åã Javaã¯ãæ°ããè¦ç´ ãç»é²ããããã®ã¨ãããã§ã«ããè¦ç´ ãæ»ãå¤ã¨ãã¦è¿ãã C#ã¯ãæ°ããè¦ç´ ãç»é²ããããã®ã¨ãããã§ã«ããè¦ç´ ãæ»ãå¤ã¨ãã¦è¿ããªãã ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}