docs/ARRAY.md in lite-ruby-1.0.22 vs docs/ARRAY.md in lite-ruby-1.0.23

- old
+ new

@@ -133,10 +133,18 @@ ```ruby [1, 1, 2, 2, 2, 3].duplicates #=> [1, 2] [1, 1, 2, 2, 2, 3].duplicates(3) #=> [2] ``` +`except(!)` +------ +Removes given values from the array. + +```ruby +[1, 2, 3, 4].except(1, 3) #=> [2, 4] +``` + `from` ------ Returns the tail of the array from a given position. ```ruby @@ -203,9 +211,17 @@ ```ruby [nil, 3, 4].nillify #=> [nil, 3, 4] [' ', 3, 4].nillify #=> [nil, 3, 4] ['', 3, 4].nillify! #=> [nil, 3, 4] +``` + +`only(!)` +------ +Selects given values from the array. + +```ruby +[1, 2, 3, 4].only(1, 3) #=> [1, 3] ``` `probability` ------ Generates a hash mapping each unique element in the array to the relative frequency, i.e. the probability, of it appearance.