(#22785) Add map function (copy of collect)
(#22785) Rename and update collect_spec to map_spec and use map

This updates the test to use map instead of collect.
(#22785) Deprecate the collect function (by making it raise an error)

The collect function is changed to raise an error that tells people
to update their manifests to use 'map'.

The documentation in the function also indicates the change, and
contains a note that it is reserved for future use.
(#22729) Remove the reject function.

The iterative 'reject' function shadowed the stdlib function with the
same name. At the same time there was a decision to rename the 'select'
function to 'filter' (to use a name in the functional programming
languages family map/reduce/filter). The reject function was then
rejected [sic].

This commit removes the reject function and the corresponding tests. The
function was not used anywhere else in puppet logic or testing.

User documentation needs to be updated.
(#22792) Rename the 'select' function to 'filter'
(#22792) Add select function that raises error

This adds a select function that tells user to update their manifests
to use the filter function. The function is reserved for future use.
(#22792) Rename 'select' to 'filter' in spec tests
(#22792) Fix typo in filter functions documentation.
(#22792) Rename select_spec.rb to filter_spec.rb
Merge branch 'issues/issue-22792-rename-select' of git://github.com/hlindberg/puppet

* 'issues/issue-22792-rename-select' of git://github.com/hlindberg/puppet:
  (#22792) Rename select_spec.rb to filter_spec.rb
  (#22792) Fix typo in filter functions documentation.
  (#22792) Rename 'select' to 'filter' in spec tests
  (#22792) Add select function that raises error
  (#22792) Rename the 'select' function to 'filter'
Merge remote-tracking branch 'henrik/issues/issue-22729-remove-reject'

* henrik/issues/issue-22729-remove-reject:
  (#22729) Remove the reject function.
(Maint) Whitespace fixup

Remove trailing whitespace.
Merge branch 'issues/issue-22785-rename-collect'

* issues/issue-22785-rename-collect:
  (Maint) Whitespace fixup
  (#22785) Deprecate the collect function (by making it raise an error)
  (#22785) Rename and update collect_spec to map_spec and use map
  (#22785) Add map function (copy of collect)
Merge branch 'master' of https://github.com/puppetlabs/puppet