é åã®å ¨ã¦ã®è¦ç´ ãçãããå¦ã mrkn é åã®å ¨ã¦ã®è¦ç´ ãçãããã¨ã¯ã©ã確èªãããè¯ããã ããã `ary.all? {|e| e == ary[0] }` ããã㪠usa ary.uniq.size == 1 mrkn ãªãã»ã© > uniq usa all?ã§ãããã¯å¼æ°ããéãããªäºæ ããã§ãaryãã§ããã¦ãã¤å ¨ç¶è¦ç´ ãçãããªãã£ããããã§ããªããã mrkn `ary.all? {|e| e.foo == ary[0].foo }` ã®å ´åã¯ã©ãã§ããããmap.uniq.size ãããã㪠usa all?ã¯å ¨ã¦çããæã«é ãããåºç¤ã§éãã¨ããã£ããéã mrkn 確ãã« > åºç¤ã§éãã¨ããã£ããéã usa ãã®è¾ºã¯äºæ³ãããéåã®å¾åã§å¤æãããããªãã§ããããã map.uniq.sizeã¯mapã®çµæã¨ãã¦ã®ä¸æé åãä½ããªãããã«ããã«ã¯ããã¼ã¨ En
{{#tags}}- {{label}}
{{/tags}}