Re: nth and take-nth argument order

2008-11-08 Thread Michael Wood
On Sat, Nov 8, 2008 at 10:08 PM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > On Nov 8, 2:44 pm, "Michael Wood" <[EMAIL PROTECTED]> wrote: >> Is there any particular reason for the reversal of the order of >> arguments between nth and take-nth? > > Short answer - take-nth is more like take. > > Long

Re: nth and take-nth argument order

2008-11-08 Thread Rich Hickey
On Nov 8, 2:44 pm, "Michael Wood" <[EMAIL PROTECTED]> wrote: > Is there any particular reason for the reversal of the order of > arguments between nth and take-nth? Short answer - take-nth is more like take. Longer answer: http://groups.google.com/group/clojure/browse_frm/thread/8b2c8dc96b39d

nth and take-nth argument order

2008-11-08 Thread Michael Wood
Is there any particular reason for the reversal of the order of arguments between nth and take-nth? I would have expected something like: clojure/nth ([n coll]) clojure/take-nth ([index coll]) ([index coll not-found]) or else: clojure/nth ([coll n]) clojure/take-nth ([coll index]) ([coll ind