The update function: like update-in, for first level

Description

update-in is useful for updating nested structures. Very often we just want to update one level, so an update function optimised for this use case is useful.

It operates identically to update-in with a key path of length one so these are the same:

1 2 (update-in m [k] f args...) (update m k f args...)

Patch: CLJ-1251.patch

Screened by: Alex Miller

Environment

None

Status

Assignee

Ambrose BS

Reporter

import

Labels

None

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Release 1.6

Priority

Minor