These efuns exist for the manipulation of array values:
Beek @ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere