(Quick Reference) h3 Purpose

Delete only SmartionaryEntry associates of a SmartionaryEntry that have null as their value.

Example

Smartionary.purgeNull('fruits')

Description

purgeNull() is the equivalient of calling a specific kind of find { } closure:

Map fruits = [
    a: "apple",
    b: "banana",
    c: "cantaloupe",
    d: "durian",
    t: null
]

fruits = fruits.findAll { k, v -> v != null }

For purging only all values, see purge.

For more specific or drastic deletions, see delete.