Uploaded image for project: 'Clojure'
  1. CLJ-1251

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: Release 1.6
    • Fix versions: Release 1.7
    • Labels:
      None
    • Approval:
      Ok
    • Patch:
      Code and Test

      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 Closed .patch

      Screened by: Alex Miller

        Attachments

          Activity

            People

            • Assignee:
              ambrosebs Ambrose Bonnaire-Sergeant
              Reporter:
              alex+import import
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: