The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Feature #14380

New parser function - delete_each, to delete each item in an array from another array.

Added by Bob Feldbauer about 3 years ago. Updated 12 months ago.

Status:UnreviewedStart date:05/09/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:stdlibSpent time:-
Target version:-
Keywords: Branch:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/MODULES-1134


Description

Pull request sent to puppet-stdlib, #68 – https://github.com/puppetlabs/puppetlabs-stdlib/pull/68

This new parser function in stdlib is called delete_each. It allows deleting each item in an array from another array.

Usage: delete_each(original_array, to_delete_array)

Example: delete_each([‘a’,‘b’,‘c’, ’d'], [‘b’, ’d']) Returns: [‘a’, ‘c’]

History

#1 Updated by Rodney Beede 12 months ago

Redmine Issue #14380 has been migrated to JIRA:

https://tickets.puppetlabs.com/browse/MODULES-1134

Also available in: Atom PDF