Name

remove — Remove key/value pair from a map

Synopsis

map remove ( map MAP ,
  any KEY );
 

Parameters

map MAP

any KEY

Return

map

Description

Remove the value with the key KEY from a map. Returns unchanged map if the key is invalid.

The yast2-core version < 2.17.16 returns nil if the key is invalid. This behavior has changed in version 2.17.16 to return unchanged map.

Usage

  remove($[1:2], 0) -> $[1:2]
 

  remove($[1:2], 1) -> $[]
 

  remove ($[1:2, 3:4], 1) -> $[3:4]