Skip to content

Commit

Permalink
Merge fff5e9d into 555f329
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jan 13, 2019
2 parents 555f329 + fff5e9d commit f10e4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -668,8 +668,8 @@ Go!プリンセスプリキュア
>> Precure.all_girls.select(&:yellow?).map(&:precure_name)
=> ["シャイニールミナス", "キュアレモネード", "キュアパイン", "キュアサンシャイン", "キュアミューズ", "キュアピース", "キュアロゼッタ", "キュアハニー", "キュアトゥインクル", "キュアカスタード", "キュアエトワール"]

>> Precure.all_girls.group_by{ |girl| girl.color }.map{ |color, girls| [color, girls.count] }.sort_by{ |color, girl_count| girl_count }.reverse
=> [["pink", 12], ["yellow", 11], ["blue", 10], ["purple", 7], ["red", 7], ["white", 4], ["green", 3], ["rainbow", 1], ["black", 1]]
>> Precure.all_girls.group_by{ |girl| girl.color }.map{ |color, girls| [color, girls.count] }.sort_by{ |color, girl_count| [girl_count, color] }.reverse
=> [["pink", 12], ["yellow", 11], ["blue", 10], ["red", 7], ["purple", 7], ["white", 4], ["green", 3], ["rainbow", 1], ["black", 1]]
```

### birthday methods
Expand Down

0 comments on commit f10e4e8

Please sign in to comment.