clojure-site icon indicating copy to clipboard operation
clojure-site copied to clipboard

Document destructuring of singleton map sequences

Open lassemaatta opened this issue 1 year ago • 2 comments

Since clojure 1.11 (as per CLJ-2603), destructuring a sequence containing a single map can directly bind to the map contents. An example of this can be seen here. It might be a good idea to mention this in the destructuring guide as this behaviour might be surprising to some (at least it was for me).

lassemaatta avatar Feb 15 '24 08:02 lassemaatta