HomeSoftware Heritage

Extend delete function for strings and hashes
7322e4dc2f8dUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Extend delete function for strings and hashes

Previous to this commit, the delete function only acted on
arrays. This commit adds the same functionality for hashes and strings
in the obvious way: delete(h, k) would delete the k key from the h
hash and delete(s, sub) would delete all instances of the sub
substring from the s string.

Details

Provenance
Joshua Harlan Lifton <lifton@puppetlabs.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Nov 19 2012, 2:44 PM
olasdPushed on Sep 10 2015, 1:26 PM
Parents
rSPSTD0798059361cd: Fixed typo
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rSPSTD7322e4dc2f8d: Extend delete function for strings and hashes (authored by Joshua Harlan Lifton <lifton@puppetlabs.com>).Nov 19 2012, 2:44 PM