Clojure

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

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: Release 1.6
  • Fix Version/s: Release 1.7
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Ok

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:

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

Patch: CLJ-1251.patch

Screened by: Alex Miller

  1. CLJ-1251.patch
    23/May/14 12:16 PM
    4 kB
    Ambrose Bonnaire-Sergeant
  2. update.patch
    03/Sep/13 9:01 AM
    2 kB
    Michael O. Church

Activity

People

Vote (3)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: