Re: Why is `(get-in m ks)` not implemented as `(get-in m ks nil)`?

2019-12-11 Thread Alex Miller
At a skim, seems like a reasonable thing to do. On Wednesday, December 11, 2019 at 5:04:38 AM UTC-6, Dirk Wetzel wrote: > > Hey everyone! :) > > I was recently looking at the source for *get-in* to check if it would > exit early as soon as a key was not present in the nested maps. > The source fo

Why is `(get-in m ks)` not implemented as `(get-in m ks nil)`?

2019-12-11 Thread 'Dirk Wetzel' via Clojure
Hey everyone! :) I was recently looking at the source for *get-in* to check if it would exit early as soon as a key was not present in the nested maps. The source for quick reference: (defn get-in "Returns the value in a nested associative structure, where ks is a sequence of keys. Returns n