New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update #20
Comments
@fredericksgary : rewrite it not to use |
Yeah I thought that might get a comment :). |
Hrm, I've gone back and forth on this one myself a bit. While |
Often I'm using |
I think the only reason to have any of the flat versions is a bit of sugar for the most common case, and a bit of performance. |
Good points -- that all makes sense. I think my last reservation is that we encourage |
Would it be weird to put it in |
Wouldn't be weird, but on the whole core seems like a more fitting place. On Wed, Mar 5, 2014 at 5:30 AM, fredericksgary notifications@github.comwrote:
|
I just searched internally 11 codebases (5 libs & 6 apps) totalling ~20,000 LOC, and there were 2 instances of I'm more prone to use |
Cool, thanks -- PR away :). On Wed, Mar 5, 2014 at 11:46 AM, fredericksgary notifications@github.comwrote:
|
note: I first saw this function here: |
Created #21 |
Would a pull request for
(defn update [m k f & args] (apply update-in m [k] f args))
be accepted?Every time I use
update-in
with a single key, I imagine a parenthesis losing its wings somewhere.The text was updated successfully, but these errors were encountered: