Glad I could help. Enjoy coding. On Tue, Feb 10, 2009 at 10:43 PM, Onorio Catenacci <catena...@gmail.com>wrote:
> > On Feb 10, 10:14 pm, Jeffrey Straszheim <straszheimjeff...@gmail.com> > wrote: > > This one is easy: > > > > (and this that the-other-thing) > > > > and is short-circuting, e.g. it returns nil/false on reaching the first > > nil/false element, or the value of the last element. > > > > I used it tonight like this: > > > > (and x (inc x)) > > > > This returns x+1, unless x is nil, in which case it returns nil. > > > > Make sense? > > > > Yes, perfect sense. Seems so bloody obvious now--don't know why I > never thought to look for (and) on the Clojure website. Thanks for > the assist. > > -- > Onorio Catenacci III > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---