Name

change — Change element pair in a map

Synopsis

change ( map  MAP ,
  any  KEY ,
  any  VALUE );

Parameters

map MAP

any KEY

any VALUE

Description

DO NOT use this yet. It's for a special requst, not for common use!!!

Adds the key/value pair KEY : VALUE to the map MAP and returns the map. MAP is modified. If the key KEY exists in KEY, the old key/value pair is replaced with the new one.

Usage

  change ($[.a: 17, .b: 11], .b, nil) -> $[.a:17, .b:nil].