README.md in flash_extensions-3.0.0 vs README.md in flash_extensions-3.1.0
- old
+ new
@@ -55,19 +55,10 @@
["1", "2", "3"].remove_last #=> ["1", "2"]
```
### EnumerableExtensions
-####Average:####
-Use the `average` method to return the average of a collection of numbers.
-
-```ruby
-[1,2,3].average #=> 2
-[].average #=> 0
-[].average(nil) #=> nil
-```
-
####Drop Last:####
Use the `drop_last` method to drops the last number of elements of a collection.
```ruby
[1,2,3].drop_last(1) #=> [1,2]
@@ -87,9 +78,72 @@
```ruby
[1,2,3].excatly?(3) #=> true
[1,1,3,3].exactly?(2, &:even?) #=> false
[].exactly?(1) #=> false
+```
+
+####Frequencies:####
+Use the `frequencies` method to return a hash of the number of times a value in an array appears.
+
+```ruby
+[1, :symbol, 'string', 3, :symbol, 1].frequencies #=> { 1 => 2, :symbol => 2, 'string' => 1, 3 => 1 }
+[].frequencies #=> {}
+```
+####Max:####
+Use the `max` method to return the largest value of a collection of numbers.
+
+```ruby
+[2,3,1].max #=> 3
+[].max #=> 0
+[].max(nil) #=> nil
+```
+
+####Min:####
+Use the `min` method to return the smallest value of a collection of numbers.
+
+```ruby
+[2,3,1].min #=> 3
+[].min #=> 0
+[].min(nil) #=> nil
+```
+
+####Mean:####
+Use the `mean` method to return the average of a collection of numbers.
+
+```ruby
+[1,2,3].mean #=> 2
+[].mean #=> 0
+[].mean(nil) #=> nil
+```
+
+####Median:####
+Use the `median` method to return the middle value of a collection of numbers.
+
+```ruby
+[1,2,6].median #=> 2
+[1,2,3,6].median #=> 2.5
+[].median #=> 0
+[].median(nil) #=> nil
+```
+
+####Mode:####
+Use the `mode` method to return the most frequent value of a collection of numbers.
+
+```ruby
+[1,1,2,46].mode #=> 1
+[1,2,3].mode #=> nil
+[].mode #=> 0
+[].mode(nil) #=> nil
+```
+
+####Range:####
+Use the `range` method to return the difference between the smallest and largest value of a collection of numbers.
+
+```ruby
+[1,2,6].range #=> 5
+[].range #=> 0
+[].range(nil) #=> nil
```
####Several:####
Use the `several?` method to return if there are several types of an element.
\ No newline at end of file