Mutare.Mutators.MapKeyword (mutare v0.1.0)

Copy Markdown View Source

Renames Map and Keyword writes according to how they handle present and absent keys:

functionkey presentkey absent
putoverwriteinsert
put_newleave unchangedinsert
replaceoverwriteignore
replace!overwriteraise

The following /3 pairs are exchanged:

  • putput_new
  • putreplace
  • put_newreplace
  • replacereplace!

The same pairs apply to both Map and Keyword. Direct, aliased, and imported calls are supported; an alias that resolves to another module does not match.

This family is enabled by default. Its family name is map_keyword.