注æ: ææ¨ã«ã¯ãªãã¾ããå ´åã«ãã£ã¦ã¯ããã©ã¼ãã³ã¹ãç°ãªã£ããæåãå¤ãã£ããã³ã¼ãã®å¯èªæ§ã«ãå½±é¿ããã®ã§ã¡ããã¨ããã©ã¼ãã³ã¹ãè¦ãªããããã¹ãããªããæ¸ãã¾ãããã åè https://github.com/JuanitoFatas/fast-ruby https://speakerdeck.com/sferik/writing-fast-ruby ã¡ã¢ Arrayã®æ°ãæ°ãããªãArray#sizeãããã¯Array#lengthï¼Enumerable#countã使ãããéãï¼ Arrayã®æ¤ç´¢ã«ã¯Array#findãããã¯Array#detectï¼Array#select.firstããéãï¼ Arrayã®ã©ã³ãã åå¾ã«ã¯Array#sampleï¼Array#shuffle.firstããéãï¼ Arrayã®æåã®è¦ç´ ã®åå¾ã¯Array#[0]ï¼Array#firstã
{{#tags}}- {{label}}
{{/tags}}