Thanks for the feedback. I have:

- Added references to the new clojure/remove and removed the old
custom implementation
- Added notes about the differences between Enumerable#min/max and
clojure/min, /max (the former act on an arbitrary collection, the
latter on separate numerical args)
- Updated looping methods to use clojure/loop
- Added a link on the wikibook

Best,
- Mark M.

On Fri, Oct 17, 2008 at 2:19 AM, mb <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On 17 Okt., 00:14, Mark McGranaghan <[EMAIL PROTECTED]> wrote:
>> When I first started working with Clojure a while back I tried to get
>> my bearings by figuring out how to do some basic things in Clojure
>> that I had previously done in Ruby.  With all the recent talk about
>> the seq api, I thought I'd clean up my notes on Ruby => Clojure for
>> the Enumerable and Array Ruby classes.
>>
>> You can find what I have so far here:http://gist.github.com/17283
>>
>> I hope someone finds this helpful. Comments are appreciated.
>
> Nice summary. I shortly skimmed through it and noticed some things:
>
> - remove is now in Clojure (since yesterday) :)
>
> - There is min and max. You just mentioned "first/last
>  if ordered".
>
> - You use a strange-looking way for loops:
>  (defn foo
>    [a b]
>    ((fn [a c] (recur (bar a c) (b a c)) a :initial))
>
>  This is better written with loop:
>
>  (defn foo
>    [a b]
>    (loop [a a c :initial] (recur (bar a c) (b a c)))
>
> - It is maybe a good idea to also include things
>  of Clojure, which Ruby doesn't have, eg. interpose
>  and interleave, to help programmers to get some
>  ideas for the Clojure-way of doing things. Hmm...
>  or maybe not. There are the docs and the wiki
>  after all....
>
> As Parth suggested, you should definitively
> put a link in the Ruby section of the wiki.
>
> Sincerely
> Meikel
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to