On Aug 18, 2:42 am, Michael Wood <esiot...@gmail.com> wrote:
> "nils replace nils when there are fewer substitutions than nil
> positions" was one of the requirements.
>
> From the first post:
>
> > If nil is encountered in the first sequence and the second sequence is
> > exhaused, nil will be returned:
>
> > e.g.  user> (nil-coalesce (nil 1 2 3 nil nil) (4 5))
> > (4 1 2 3 5 nil)

_Returning_ nil is the requirement, which is what happens in the code
I posted (it behaves the same as other submissions as far as I can
tell). Replacing nil with nil in the result vector isn't necessary for
that to happen.

Justin

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to