On Dec 25, 2009, at 6:13 PM, Piotr 'Qertoip' Włodarek wrote:

> What is the most clear and idiomatic way to convert arabic numbers to roman 
> notation?

Though it may miss the true goal of the exercise, there's also this option:

        user=> (clojure.contrib.pprint/cl-format nil "~...@r" 3991)
        "MMMCMXCI" 

which is perhaps not as clear as one might like, but is very flexible, very 
likely to give correct results, and leverages existing capability well.

--Steve

-- 
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